Commit 3243a02f authored by Robey Pointer's avatar Robey Pointer
Browse files

add images to assets folder, with a python script that turns them into code

parent ab56b8ad
#include <stdint.h>
#include <avr/pgmspace.h>
// in packed (simple RLE) format
// generated by packbmp.py: RLE format bitmap
const uint8_t logo_bitmap[] PROGMEM = {
0x9c, 0x00, 0x04, 0xf0, 0xe0, 0xc0, 0x80, 0x85, 0x00, 0x04, 0xf0, 0xe0,
0xc0, 0x80, 0x85, 0x00, 0x04, 0xf0, 0xe0, 0xc0, 0x80, 0xea, 0x00, 0x84,
......@@ -16,9 +16,19 @@ const uint8_t logo_bitmap[] PROGMEM = {
0x03, 0xff, 0xff, 0xdb, 0x00, 0x07, 0x07, 0x07, 0x06, 0x07, 0x07, 0x06,
0x07, 0x84, 0x06, 0x02, 0x07, 0x06, 0x85, 0x07, 0x0b, 0x06, 0x06, 0x06,
0x07, 0x07, 0x06, 0x07, 0x07, 0x06, 0x07, 0x06, 0x85, 0x07, 0x03, 0x06,
0x07, 0x07, 0x9d, 0x00, 0x00
0x07, 0x07, 0x9d, 0x00,
};
// generated by packbmp.py: RLE format bitmap
const uint8_t empty_bitmap[] PROGMEM = {
0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0x84, 0x00, 0x00
0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0x84, 0x00,
};
// generated by packbmp.py: RLE format bitmap
const uint8_t battery_warn_bitmap[] PROGMEM = {
0xab, 0x00, 0xaa, 0xc0, 0xd1, 0x00, 0x07, 0xf8, 0xf8, 0x18, 0x18, 0x18,
0x1f, 0x1f, 0x91, 0x00, 0x04, 0xf8, 0xfc, 0xfc, 0xf8, 0x91, 0x00, 0x02,
0xff, 0xff, 0xd1, 0x00, 0x07, 0x0f, 0x0f, 0x0c, 0x0c, 0x0c, 0xfc, 0xfc,
0x91, 0x00, 0x04, 0x10, 0x39, 0x39, 0x10, 0x91, 0x00, 0x02, 0xff, 0xff,
0xd6, 0x00, 0xaa, 0x03, 0xab, 0x00, 0x00,
};
#!/bin/sh
poetry run python ./packbmp.py "$@"
PYTHON=python
if ! $PYTHON --version >/dev/null 2>&1; then
PYTHON=python3
fi
$PYTHON ./packbmp.py "$@"
......@@ -7,10 +7,10 @@
#include <stdio.h>
#include <stdlib.h>
#include "assets/images.h"
#include "controller.h"
#include "display.h"
#include "Keyboard.h"
#include "logo.h"
#include "ssd1306.h"
#include "ux.h"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment