Skip to content

Instantly share code, notes, and snippets.

@boochow
Last active January 6, 2018 03:40
Show Gist options
  • Save boochow/e3d707fc28ec113a471ff31be85fba55 to your computer and use it in GitHub Desktop.
Save boochow/e3d707fc28ec113a471ff31be85fba55 to your computer and use it in GitHub Desktop.
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