Cerb40 and SPI and gadgeteer

Hi all,

I Try SPI communication between Cerb40 and SA9904B. I use Cerb40 fw> and 4.2 netfm.

socket 6: PB3 - SCK, PB4 - MISO, PB5 - MOSI, PA13 - CS

        GTI.SPI.Configuration spiConfig = new GTI.SPI.Configuration(true, 0, 0, false, false, 250);
        _spi = new GTI.SPI(socket, spiConfig, GTI.SPI.Sharing.Shared, socket, Socket.Pin.Six, this);

byte[] dataRead = new byte[3];
_spi.WriteRead(new byte[] { 0x01, (byte)(0x03 | 0x80) }, dataRead);

SPI is not working on Cerb40? Please advise me what I’m doing wrong.

Hi stafil,

Welcome to the community.

SPI may not be completed in the Cerberus firmware. When it was tested on the OLED we only needed the MOSI pin to be functional as there is no need for return data from that module. I will check the source code on Monday to determine if it is indeed complete.

By the way, you should refer to the wiki page for latest info