API for EBOLED spi controlled OLED display.  
 More...
The EBOLED is an ssd1306 with some modifications to work as an Edison Block. It is a 64x48 pixel OLED display that connects directly to an edison via it's 80-pin connector. Edison Blocks are stackable modules created by Sparkfun.
This block has some buttons on it that can be accessed using standard GPIO – this driver only concerns itself with the display.
  
  
  cout << "Sleeping for 5 seconds..." << endl;
  sleep(5);
  
  delete lcd;
 
 | 
|   | EBOLED (int spi=EBOLED_DEFAULT_SPI_BUS, int CD=EBOLED_DEFAULT_CD, int reset=EBOLED_DEFAULT_RESET) | 
|   | 
|   | ~EBOLED () | 
|   | 
| mraa_result_t  | draw (uint8_t *data, int bytes) | 
|   | 
| mraa_result_t  | write (std::string msg) | 
|   | 
| mraa_result_t  | setCursor (int row, int column) | 
|   | 
| mraa_result_t  | clear () | 
|   | 
| mraa_result_t  | home () | 
|   | 
| 
mraa_result_t  | write (int x, int y, std::string msg) | 
|   | 
| 
std::string  | name () | 
|   | 
 | 
| 
mraa_result_t  | command (uint8_t cmd) | 
|   | 
| 
mraa_result_t  | data (uint8_t data) | 
|   | 
| 
mraa_result_t  | writeChar (uint8_t value) | 
|   | 
| 
mraa_result_t  | setAddressingMode (displayAddressingMode mode) | 
|   | 
      
        
          | EBOLED  | 
          ( | 
          int  | 
          spi = EBOLED_DEFAULT_SPI_BUS,  | 
        
        
           | 
           | 
          int  | 
          CD = EBOLED_DEFAULT_CD,  | 
        
        
           | 
           | 
          int  | 
          reset = EBOLED_DEFAULT_RESET  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
EBOLED Constructor. Note that you will not have any choice as to the pins used, so they are all set to default values.
- Parameters
 - 
  
    | spi | spi bus to use  | 
    | CD | Command/Data select pin  | 
    | reset | reset pin  | 
    | address | the slave address the lcd is registered on  | 
  
   
 
 
      
        
          | mraa_result_t draw  | 
          ( | 
          uint8_t *  | 
          data,  | 
        
        
           | 
           | 
          int  | 
          bytes  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Draw an image, see examples/python/make_oled_pic.py for an explanation on how the pixels are mapped to bytes
- Parameters
 - 
  
    | data | the buffer to write  | 
    | bytes | the number of bytes to write  | 
  
   
- Returns
 - result of operation 
 
 
 
  
  
      
        
          | mraa_result_t write  | 
          ( | 
          std::string  | 
          msg | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
Write a string to LCD
- Parameters
 - 
  
    | msg | the std::string to write to display, note only ascii chars are supported  | 
  
   
- Returns
 - result of operation 
 
Implements LCD.
 
 
  
  
      
        
          | mraa_result_t setCursor  | 
          ( | 
          int  | 
          row,  | 
         
        
           | 
           | 
          int  | 
          column  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
virtual   | 
  
 
Set cursor to a coordinate
- Parameters
 - 
  
    | row | the row to set cursor to. This device supports 6 rows.  | 
    | column | the column to set cursor to. This device support 64 columns  | 
  
   
- Returns
 - result of operation 
 
Implements LCD.
 
 
Clear display
- Returns
 - result of operation 
 
Implements LCD.
 
 
Return to coordinate 0,0
- Returns
 - result of operation 
 
Implements LCD.
 
 
The documentation for this class was generated from the following files:
- /var/lib/jenkins/workspace/upm-doc-stable/src/lcd/eboled.h
 
- /var/lib/jenkins/workspace/upm-doc-stable/src/lcd/eboled.cxx