mirror of
https://github.com/nopnop2002/esp-idf-ssd1306.git
synced 2024-10-03 18:18:47 -04:00
Added fleischer data
This commit is contained in:
parent
d95e58b519
commit
72cac63bdd
@ -4,5 +4,12 @@
|
||||
![ImageDemo-2](https://user-images.githubusercontent.com/6020549/165235310-88430dc3-5bed-4190-99e4-fe268c449218.JPG)
|
||||
|
||||
|
||||
I borrowed the BIT MAP data from [here](https://www.mischianti.org/2021/07/14/ssd1306-oled-display-draw-images-splash-and-animations-2/).
|
||||
I borrowed the BIT MAP data from [here](https://www.mischianti.org/2021/07/14/ssd1306-oled-display-draw-images-splash-and-animations-2/).
|
||||
|
||||
I made the BIT MAP data from [here](https://iitestudent.blogspot.com/2013/01/displaying-bitmap-on-graphic-lcd.html).
|
||||
|
||||
|
||||
# How to make your original BIT MAP data
|
||||
- Prepare your image file.
|
||||
- Convert image file to BMP data using [this](https://www.mischianti.org/2021/07/14/ssd1306-oled-display-draw-images-splash-and-animations-2/) page.
|
||||
- Paste the BMP data into your code.
|
||||
|
@ -112,6 +112,75 @@ uint8_t logoMischianti [1024] = {
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x00
|
||||
};
|
||||
|
||||
// https://iitestudent.blogspot.com/2013/01/displaying-bitmap-on-graphic-lcd.html
|
||||
uint8_t fleischer [1024] = {
|
||||
// 'fleischer_420', 128x64px
|
||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0xff, 0xff, 0x80, 0x1f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0xff, 0xfc, 0x3f, 0xe3, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0xff, 0xf8, 0xff, 0xf8, 0x1f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0xff, 0xf9, 0xff, 0xfc, 0x00, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0xff, 0xf3, 0xff, 0xff, 0xff, 0x87, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0xff, 0xf3, 0xff, 0xff, 0xff, 0xe3, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0xff, 0xf3, 0xff, 0xff, 0xff, 0xf9, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0xff, 0xf3, 0xff, 0xff, 0xff, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0xff, 0xfb, 0x80, 0xff, 0xff, 0xfe, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0xff, 0xfc, 0x00, 0x07, 0xff, 0xff, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0xff, 0xf8, 0xff, 0xc0, 0xff, 0xff, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0xff, 0xf3, 0xff, 0xf8, 0x3f, 0xff, 0xbf, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0xff, 0xe7, 0xff, 0xff, 0x1f, 0xff, 0xbf, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0xff, 0xef, 0xff, 0xff, 0x87, 0xff, 0xbf, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0xff, 0xcf, 0xff, 0xff, 0xe3, 0xff, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0xff, 0x9f, 0xff, 0xff, 0xf3, 0xff, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0xff, 0x9f, 0xff, 0xff, 0xfb, 0xfe, 0x7f, 0xfe, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0xff, 0xbf, 0xff, 0xff, 0xff, 0x7c, 0xff, 0xf8, 0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0xff, 0x3f, 0xff, 0xf9, 0xff, 0xf9, 0xff, 0x03, 0xe0, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0xfe, 0x77, 0xff, 0xfe, 0xfe, 0xc3, 0xfe, 0x7b, 0xf7, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0xfc, 0xff, 0xff, 0xfe, 0xfe, 0x6f, 0xc0, 0xff, 0xff, 0x9f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0xf9, 0xdf, 0xff, 0xfc, 0xfe, 0x6f, 0x8e, 0x7f, 0xff, 0xcf, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0xf9, 0xdf, 0xff, 0xfd, 0xfe, 0x77, 0x1f, 0x7f, 0xff, 0xe3, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
|
||||
0xf9, 0xff, 0xff, 0xfd, 0xf0, 0x77, 0x3f, 0xff, 0xff, 0xf1, 0xff, 0xfc, 0x1f, 0xff, 0xff, 0xff,
|
||||
0xf9, 0xff, 0xf7, 0xf9, 0xec, 0x76, 0x7f, 0xff, 0xff, 0xf9, 0xff, 0xc0, 0x01, 0xff, 0xff, 0xff,
|
||||
0xf9, 0xff, 0xfb, 0xfb, 0xfc, 0x66, 0x7f, 0xff, 0xff, 0xfc, 0xff, 0x00, 0x00, 0x7f, 0xff, 0xff,
|
||||
0xf3, 0xff, 0xff, 0xfb, 0xfc, 0x62, 0xff, 0xff, 0xff, 0xfc, 0xfc, 0x00, 0x00, 0x3f, 0xff, 0xff,
|
||||
0xf7, 0x7f, 0xff, 0x9b, 0xfc, 0x00, 0xff, 0xff, 0xff, 0xfc, 0xf9, 0xf8, 0x00, 0x1f, 0xff, 0xff,
|
||||
0xef, 0x7f, 0xdd, 0xf3, 0xfc, 0x80, 0xff, 0xff, 0xff, 0xfd, 0xf3, 0xff, 0x00, 0x0f, 0xff, 0xff,
|
||||
0x5f, 0xff, 0xcd, 0xf1, 0xf9, 0x86, 0x7f, 0xff, 0xff, 0xf9, 0xef, 0xff, 0x80, 0x07, 0xff, 0xff,
|
||||
0x1f, 0xff, 0xe6, 0xff, 0xbb, 0x9e, 0x7f, 0xff, 0xff, 0xf9, 0xc7, 0xff, 0xc0, 0x07, 0xff, 0xff,
|
||||
0xbf, 0xbf, 0xf6, 0xff, 0xb3, 0x9e, 0x7f, 0xff, 0xff, 0xf3, 0xc7, 0xff, 0xe0, 0x07, 0xff, 0xff,
|
||||
0x7f, 0x7f, 0xf3, 0x7f, 0xf7, 0x9f, 0x9f, 0xff, 0xff, 0xf3, 0x9b, 0xff, 0xf0, 0x03, 0xff, 0xff,
|
||||
0xff, 0x7f, 0xf9, 0xd7, 0xec, 0x1d, 0x9f, 0xff, 0xff, 0xf7, 0xbf, 0xff, 0xf0, 0x03, 0xff, 0xff,
|
||||
0xff, 0x7f, 0xfc, 0xf7, 0xc1, 0xcd, 0xef, 0xff, 0xff, 0xe7, 0xaf, 0xff, 0xf0, 0x03, 0xff, 0xff,
|
||||
0xfe, 0x7f, 0xfe, 0x7f, 0x9c, 0x33, 0xe7, 0xff, 0xff, 0xe7, 0x0f, 0xff, 0xf0, 0x03, 0xff, 0xff,
|
||||
0xfc, 0x7f, 0xff, 0xff, 0xc7, 0xff, 0xe3, 0xff, 0xff, 0xcf, 0x0f, 0xff, 0xe0, 0x03, 0xf3, 0xff,
|
||||
0xfe, 0xff, 0xff, 0xff, 0xe7, 0x0f, 0xf1, 0xff, 0xff, 0xcf, 0x0f, 0xff, 0x80, 0x03, 0xe1, 0xff,
|
||||
0xfe, 0x7f, 0xff, 0xdf, 0xf2, 0x67, 0xfb, 0xff, 0xff, 0xcf, 0x4f, 0xff, 0x00, 0x03, 0xc1, 0xff,
|
||||
0xfc, 0x7f, 0xff, 0xdf, 0xfc, 0xf3, 0xf3, 0xff, 0xff, 0xcf, 0x0f, 0xfe, 0x00, 0x03, 0xc1, 0xff,
|
||||
0xfc, 0x7f, 0xff, 0xef, 0xed, 0xf3, 0xf7, 0xff, 0xff, 0xcf, 0x5f, 0xfe, 0x00, 0x03, 0xc1, 0xff,
|
||||
0xf2, 0x7f, 0xff, 0xf7, 0xdc, 0xf3, 0xe7, 0xff, 0xff, 0xcf, 0x3f, 0xfc, 0x00, 0x03, 0x83, 0xff,
|
||||
0xdf, 0x3f, 0xff, 0xf8, 0x7e, 0xf7, 0xef, 0xff, 0xff, 0xcf, 0x3f, 0xfc, 0x00, 0x03, 0x03, 0xff,
|
||||
0xff, 0x3f, 0xff, 0xff, 0xfe, 0xe7, 0xcf, 0xff, 0xff, 0xcf, 0xbf, 0xfc, 0x00, 0x00, 0x07, 0xff,
|
||||
0xff, 0x9f, 0xff, 0xff, 0xfe, 0xef, 0xdf, 0xff, 0xff, 0xcf, 0x9f, 0xfe, 0x00, 0x00, 0x0f, 0xff,
|
||||
0x1f, 0x9f, 0xff, 0xff, 0xfe, 0xcf, 0x9f, 0xff, 0xff, 0xcf, 0xdf, 0xfe, 0x00, 0x00, 0x1f, 0xff,
|
||||
0x80, 0x8f, 0xff, 0xff, 0xfc, 0xcf, 0x9f, 0xff, 0xff, 0xce, 0x1f, 0xff, 0x00, 0x60, 0x1f, 0xff,
|
||||
0xf0, 0x07, 0xff, 0xff, 0xfd, 0xe3, 0xbf, 0xff, 0xff, 0xcc, 0xfb, 0xff, 0xc1, 0xf1, 0xc3, 0xff,
|
||||
0xff, 0xf3, 0xff, 0xff, 0xf9, 0xc1, 0xbf, 0xff, 0xff, 0x8d, 0xfd, 0xf3, 0xff, 0xf8, 0xe0, 0x7f,
|
||||
0x0f, 0xf9, 0xff, 0xfb, 0xf3, 0xbc, 0x3f, 0xff, 0xff, 0x9c, 0xf8, 0x63, 0xfc, 0x7c, 0x6e, 0x0f,
|
||||
0x00, 0x08, 0x7f, 0xc0, 0x02, 0x7e, 0x7f, 0xff, 0xff, 0x9e, 0x02, 0x07, 0xe0, 0x7f, 0x6f, 0xc3,
|
||||
0x00, 0x00, 0x0c, 0x07, 0x70, 0xfe, 0x7f, 0xff, 0xff, 0x9f, 0x8f, 0x80, 0x07, 0x3f, 0x6f, 0xf0,
|
||||
0x00, 0x00, 0x00, 0x77, 0x6f, 0xfe, 0x7f, 0xff, 0xff, 0x1f, 0xff, 0xf8, 0x3f, 0x1f, 0x6f, 0xfc,
|
||||
0x00, 0x00, 0x00, 0x77, 0x1f, 0xfe, 0x7f, 0xff, 0x0f, 0x3f, 0xff, 0xff, 0xfe, 0x4e, 0xef, 0xff,
|
||||
0x00, 0x00, 0x00, 0x33, 0xdf, 0xfe, 0x7f, 0xfe, 0xff, 0x3f, 0xff, 0xff, 0xfe, 0xc6, 0xef, 0xff,
|
||||
0x00, 0x00, 0x00, 0x01, 0xcf, 0xce, 0x7f, 0xff, 0xfe, 0x3f, 0xff, 0xff, 0xfe, 0xca, 0x6f, 0xff
|
||||
};
|
||||
|
||||
void app_main(void)
|
||||
{
|
||||
SSD1306_t dev;
|
||||
@ -206,6 +275,10 @@ void app_main(void)
|
||||
ssd1306_wrap_arround(&dev, SCROLL_UP, 0, 127, 0);
|
||||
}
|
||||
vTaskDelay(2000 / portTICK_PERIOD_MS);
|
||||
|
||||
ssd1306_clear_screen(&dev, false);
|
||||
ssd1306_bitmaps(&dev, 0, 0, fleischer, 16, 64, false);
|
||||
vTaskDelay(2000 / portTICK_PERIOD_MS);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user