mirror of
				https://github.com/eclipse/upm.git
				synced 2025-11-04 09:05:34 +03:00 
			
		
		
		
	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:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user