Last active
January 6, 2018 03:40
-
-
Save boochow/e3d707fc28ec113a471ff31be85fba55 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 | |
# set gpio47 to output mode | |
mcu.mem32[int("0x20200010")] = 2**21 | |
# set gpio47 to L (LED on) | |
mcu.mem32[int("0x2020002C")] = 2**15 | |
# set gpio47 to H (LED off) | |
mcu.mem32[int("0x20200020")] = 2**15 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment