I'm now attempting to write the LCD driver but am hitting roadblocks when trying to understand OCO's code. He sets a lot of SPI configuration parameters and I don't know where he got them. For example, he has the following:
Code: Select all
devcfg.clock_speed_hz = LCD_SPI_CLOCK_RATE; devcfg.mode = 0; //SPI mode 0 devcfg.spics_io_num = LCD_PIN_NUM_CS; //CS pin devcfg.queue_size = 7; //We want to be able to queue 7 transactions at a time devcfg.pre_cb = ili_spi_pre_transfer_callback; //Specify pre-transfer callback to handle D/C line devcfg.flags = SPI_DEVICE_NO_DUMMY; //SPI_DEVICE_HALFDUPLEX;
SPI Mode 0 - not sure.
Queue Size - not sure
I feel like there must be some more documentation out there that I'm missing that discusses the ODROID-GO to LCD interface better than what is shown in the schematic on the wiki. I have the LCD datasheet, but it makes references to pins that are not shown in the ODROID-GO schematic.
In short, is there more documentation out there?