Last active
June 30, 2021 15:42
-
-
Save hekras/9b364199571a5af8f487cc447737709f to your computer and use it in GitHub Desktop.
Testing the Colour Maximite 2 Exapansion bourd with the Relay module
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
| 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