Skip to content

Instantly share code, notes, and snippets.

@hekras
Last active June 30, 2021 15:42
Show Gist options
  • Select an option

  • Save hekras/9b364199571a5af8f487cc447737709f to your computer and use it in GitHub Desktop.

Select an option

Save hekras/9b364199571a5af8f487cc447737709f to your computer and use it in GitHub Desktop.
Testing the Colour Maximite 2 Exapansion bourd with the Relay module
SETPIN 31, DOUT 'set pin 31 to latch the chip
SPI OPEN 195315, 0, 16 'mode 0, data size is 16 bits
LED1 = &B01011
PIN(31) = 0
junk = SPI(LED1)
PIN(31) = 1
PAUSE(5000)
PIN(31) = 0
junk = SPI(0)
PIN(31) = 1
SPI CLOSE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment