ssd1351: Changed SPI to MODE0 for compatibilty and listed SPI PM issue in description

Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Mihai Tudor Panu 2016-03-31 16:16:46 -07:00
parent 68aa067f82
commit cf2b8c9a6e
2 changed files with 8 additions and 2 deletions

View File

@ -44,7 +44,7 @@ SSD1351::SSD1351 (uint8_t oc, uint8_t dc, uint8_t rst) :
// Setup SPI bus
m_spi.frequency(8 * 1000000);
m_spi.mode(mraa::SPI_MODE3);
m_spi.mode(mraa::SPI_MODE0);
m_spi.writeByte(0x00); // Need to bring clk high before init
// Init pins

View File

@ -92,7 +92,13 @@ namespace upm {
*
* @brief API for SSD1351 OLED displays
*
* This module defines the interface for the SSD1351 display library
* This module defines the interface for the SSD1351 display library. It was
* tested with the Adafruit 1.5" OLED Display, but should work with any SSD1351
* display running in SPI mode.
*
* On the Intel Edison don't forget to disable SPI Power Management (PM) for
* this driver to work, you can find more details on this topic here:
* http://iotdk.intel.com/docs/master/mraa/edison.html
*
* @image html ssd1351.jpg
* @snippet ssd1351.cxx Interesting