to remember what's important

Dependencies:   Hexi_OLED_SSD1351

Fork of Hexi_OLED_Image_Example by Hexiwear

main.cpp

Committer:
arduinoer
Date:
2016-10-10
Revision:
4:a25d5f22d44c
Parent:
3:84f8d56a3ded

File content as of revision 4:a25d5f22d44c:

#include "mbed.h"
#include "Hexi_OLED_SSD1351.h"
#include "images.h"

int main() {
      
    const uint8_t *image;

    /* Setting pointer location of the 96 by 96 pixel bitmap */
    image  = ntbc1_bmp;
    
    /* Instantiate the SSD1351 OLED Driver */
    SSD1351 oled(PTB22,PTB21,PTC13,PTB20,PTE6, PTD15); // (MOSI,SCLK,POWER,CS,RST,DC)
    
    /* Turn on the backlight of the OLED Display */
    oled.DimScreenON();

    oled.DrawImage(image,0,0);
}