Created
January 22, 2020 01:09
-
-
Save mossmann/fe1aac44ad49162f34c0cde49e33a6ee 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
# for 13 August 2019 hardware | |
led=gf.gpio.get_pin("J1_P24") | |
sleep=gf.gpio.get_pin("J1_P8") | |
clock=gf.gpio.get_pin("J1_P16") | |
port=gf.gpio.get_port("J1_P25", "J1_P26", "J1_P21", "J1_P22", "J1_P20", "J1_P17", "J1_P18", "J1_P15") | |
port.all_output() | |
led.low() | |
clock.high() | |
sleep.low() | |
port.write(0) | |
def tx(sample): | |
port.write(sample) | |
clock.low() | |
clock.high() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment