Created
January 7, 2018 08:48
-
-
Save boochow/492678072a3cbc9a4ec9484a3b108317 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import mcu, utime | |
# set gpio47 to output mode | |
mcu.mem32[mcu.GPFSEL4] = 2**21 | |
while(1): | |
mcu.mem32[mcu.GPCLR1] = 2**15 | |
utime.sleep_ms(300) | |
mcu.mem32[mcu.GPSET1] = 2**15 | |
utime.sleep_ms(300) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment