C/D tutorial number 2, the Larson Scanner with some simple lines of code.
Some people may have known already about the Larson Scanner for other microcontroller platforms, we would like to take advantage to increase the knowledge with an important register in our Slenduino, that's GPIO.
The GPIO register controls all configuration pins in our board; there is more than one way to set it, lots users use to write a specific sector by initializing:
GPIO.x = xxxBut it's possible to write into it directly as shown by our little quick walkthrough.
Right after, we report the schematic of Larson Scanner, it's easly to see the difference from it and the schematic into video.
Don't worry, we use to connect the Slenduino to a 3.3 voltage regulator only for our personal confort, but the basics are the same. Now the code:
;Chip SettingsFollow the video of tutorial, keep you in touch for some updates. Have fun!
Dim out As byte
out = b'00000001'
GPIO = out
If out <> b'00001000' Then
Wait 80 ms
out = out*2
If out <> b'00100000' Then
out = out/2
If out <> b'00000001' Then