Thank guys, first i would like to thank Mike for spending some quality time with me to get started, and Savitch for posting his MCP23S17 code on TinyCLR CODE.
The MCP23S17 PRU is my favorite chip to get I/O from limited resources. Its very fast in SPI mode and have lots of features. when i was looking around the TinyCLR CODE and saw his post i started to drool. Then I designed my own board around 2 of these MCP23S17’s Maybe the next board i will put another ring around the outside of the red and have a green circle as well. then i will have 64 leds to play with
Attached is the skiz of the board.
The driver, Savitch did all the hard work.
I just changed the main app for using 2 MCP23S17’s and added the bit setting in the ICON register to allow the use of hardware address pins. I let him know about the bit, and he kindly updated his page for it. So the code you see there is basically the same code i am running. The only difference is that the code there is for one led to fly around the ring.
For the code in the video is this.
x <<= 1;
if (x == 0x100)
x = 1;