to remember what's important

Dependencies:   Hexi_OLED_SSD1351

Fork of Hexi_OLED_Image_Example by Hexiwear

Committer:
arduinoer
Date:
Mon Oct 10 03:02:53 2016 +0000
Revision:
4:a25d5f22d44c
Parent:
3:84f8d56a3ded
Hexi-minder is to remind you what's important

Who changed what in which revision?

UserRevisionLine numberNew contents of line
khuang 0:64580390e64a 1 #include "mbed.h"
khuang 0:64580390e64a 2 #include "Hexi_OLED_SSD1351.h"
khuang 0:64580390e64a 3 #include "images.h"
khuang 0:64580390e64a 4
khuang 0:64580390e64a 5 int main() {
arduinoer 4:a25d5f22d44c 6
arduinoer 4:a25d5f22d44c 7 const uint8_t *image;
khuang 0:64580390e64a 8
khuang 2:2f0f1b37dae3 9 /* Setting pointer location of the 96 by 96 pixel bitmap */
arduinoer 4:a25d5f22d44c 10 image = ntbc1_bmp;
khuang 0:64580390e64a 11
khuang 2:2f0f1b37dae3 12 /* Instantiate the SSD1351 OLED Driver */
khuang 0:64580390e64a 13 SSD1351 oled(PTB22,PTB21,PTC13,PTB20,PTE6, PTD15); // (MOSI,SCLK,POWER,CS,RST,DC)
khuang 0:64580390e64a 14
khuang 2:2f0f1b37dae3 15 /* Turn on the backlight of the OLED Display */
khuang 0:64580390e64a 16 oled.DimScreenON();
khuang 0:64580390e64a 17
arduinoer 4:a25d5f22d44c 18 oled.DrawImage(image,0,0);
arduinoer 4:a25d5f22d44c 19 }