https://github.com/universalunknown/bitmap_examples
Ready-made bitmap examples on SSD1306 module for 128x64 pixels
https://github.com/universalunknown/bitmap_examples
bitmap-graphics esp8266 ssd1306-oled
Last synced: 9 months ago
JSON representation
Ready-made bitmap examples on SSD1306 module for 128x64 pixels
- Host: GitHub
- URL: https://github.com/universalunknown/bitmap_examples
- Owner: UniversalUnknown
- Created: 2025-06-01T12:54:28.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-01T16:31:39.000Z (about 1 year ago)
- Last Synced: 2025-06-01T22:14:14.371Z (about 1 year ago)
- Topics: bitmap-graphics, esp8266, ssd1306-oled
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bitmap_Examples
A predefined repository of bitmap examples for a 128x64 pixel display using the ESP8266 with the SSD1306 module.
### Make use of this [link](https://lastminuteengineers.com/oled-display-esp8266-tutorial/#esp8266-example-code-3-dispaying-bitmap) for your code base or copy this
```c
#include
#include
#include
#include
#define SCREEN_WIDTH 128 // OLED display width, in pixels
#define SCREEN_HEIGHT 64 // OLED display height, in pixels
// Declaration for SSD1306 display connected using I2C
#define OLED_RESET -1 // Reset pin
#define SCREEN_ADDRESS 0x3C
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);
...
//bitmap code here
...
const int epd_bitmap_allArray_LEN = 1;
const unsigned char* epd_bitmap_allArray[1] = {
<>
};
void setup() {
Serial.begin(9600);
// initialize the OLED object
if (!display.begin(SSD1306_SWITCHCAPVCC, SCREEN_ADDRESS)) {
Serial.println(F("SSD1306 allocation failed"));
for (;;)
;
}
// Clear the buffer.
display.clearDisplay();
display.drawBitmap(32, 0, <> , 64, 64, WHITE);
display.display();
// Invert Display
//display.invertDisplay(1);
}
void loop() {
}
```
here module name can be find from `copy from` directed folder.
Example: image2.ino
```arduino
const unsigned char epd_bitmap_image2 [] PROGMEM = {
0xff, 0xff, 0xff,
.....
.....
}
```
`epd_bitmap_image2` is the module name so copy it and append it in ``<> ``, one right below bitmap code(that .ino file you copied) and another on second line of `Clear the buffer` comment.
## Images and links :)

> image1 [source: r/pixelart](https://www.reddit.com/r/PixelArt/comments/fnamaf/7_colors_used_128x64_pxls_hope_you_like_it/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button)
[copy from](examples/image1.ino)

> image2 [source: Deviantart](https://www.deviantart.com/suchanames/art/Skull-in-pixel-art-64X64-905035597)
[copy from](examples/image2.ino)

> image3 [source: r/pixelart](https://www.reddit.com/r/PixelArt/comments/1ad48b4/nidoking_64x64/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button)
[copy from](examples/image3.ino)
* A awesome skeleton gif [repository](https://github.com/sandhan26/Skeletor-animation-arduino.git), you can make use of [this](https://github.com/sandhan26/Skeletor-animation-arduino/tree/master/skeletor_v1) file for learning.