I modified the porting code
(http://cmucam.org/projects/cmucam5/wiki/Porting_Guide)
to match more closely the arduino 1.7 code which contains the flush fix (circular input buffer, etc).
(http://www.cmucam.org/projects/cmucam5/news)
But sending setLED (0, i++, 0) commands every 500ms in a loop, the Pixy Led doesn’t react to it… I’d expect it to go green with increasing intensity. The 1mhz sclk (Pin3) Mosi (Pin4), and Ground (Pin6) look good when I look at the spi bus.
(i.e. I see the command (0x5B, 0x00, 0x5B, 0xFD) followed by the data (0x5B, 0x00, 0x5B, 0xXX, 0x5B, 0x00) where 0xXX increments from 0x00-0xFF
Do I need to press the white button on the pixy to get into a slave mode? Does the default program/mode on power-on work with setLED SPI commands? Can the CS line be left open? Any issue if CS is tied high or low?
Because of the cable I’m using, the I2C SCL pin is tied low… is this a problem or does it expect it to be high (even though I’m using only the SPI interface?)
Here is the bus activity, any ideas why the Pixy isn’t changing the led color?