Skip to content

Instantly share code, notes, and snippets.

@mossmann
Created January 22, 2020 01:09
Show Gist options
  • Save mossmann/fe1aac44ad49162f34c0cde49e33a6ee to your computer and use it in GitHub Desktop.
Save mossmann/fe1aac44ad49162f34c0cde49e33a6ee to your computer and use it in GitHub Desktop.
# 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