diff --git a/src/ssd1351/ssd1351.cxx b/src/ssd1351/ssd1351.cxx index 2103603b..691b64a0 100644 --- a/src/ssd1351/ssd1351.cxx +++ b/src/ssd1351/ssd1351.cxx @@ -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 diff --git a/src/ssd1351/ssd1351.h b/src/ssd1351/ssd1351.h index 6f23c66e..5a37352e 100644 --- a/src/ssd1351/ssd1351.h +++ b/src/ssd1351/ssd1351.h @@ -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