Grant Wodny / Mbed OS Hexi-minder

Dependencies:   Hexi_OLED_SSD1351

Fork of Hexi_OLED_Image_Example by Hexiwear

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 #include "Hexi_OLED_SSD1351.h"
00003 #include "images.h"
00004 
00005 int main() {
00006       
00007     const uint8_t *image;
00008 
00009     /* Setting pointer location of the 96 by 96 pixel bitmap */
00010     image  = ntbc1_bmp;
00011     
00012     /* Instantiate the SSD1351 OLED Driver */
00013     SSD1351 oled(PTB22,PTB21,PTC13,PTB20,PTE6, PTD15); // (MOSI,SCLK,POWER,CS,RST,DC)
00014     
00015     /* Turn on the backlight of the OLED Display */
00016     oled.DimScreenON();
00017 
00018     oled.DrawImage(image,0,0);
00019 }