save flash through image compression
For default make configuration, 574 bytes saved with primitive compression algorithm.
This commit is contained in:
+2
-2
@@ -569,12 +569,12 @@ sticks.lbm: sticks_4x1.xbm
|
|||||||
s9xsplash.lbm: s9xsplash.xbm
|
s9xsplash.lbm: s9xsplash.xbm
|
||||||
@echo
|
@echo
|
||||||
@echo "Convert splash from xbm to lbm:"
|
@echo "Convert splash from xbm to lbm:"
|
||||||
$(IMG2LBM) $< $@ img
|
$(IMG2LBM) $< $@ imgc
|
||||||
|
|
||||||
asterisk.lbm: asterisk.xbm
|
asterisk.lbm: asterisk.xbm
|
||||||
@echo
|
@echo
|
||||||
@echo "Convert asterisk from xbm to lbm:"
|
@echo "Convert asterisk from xbm to lbm:"
|
||||||
$(IMG2LBM) $< $@ img
|
$(IMG2LBM) $< $@ imgc
|
||||||
|
|
||||||
# Eye candy.
|
# Eye candy.
|
||||||
# AVR Studio 3.x does not check make's exit code but relies on
|
# AVR Studio 3.x does not check make's exit code but relies on
|
||||||
|
|||||||
+6
-5
@@ -1,5 +1,6 @@
|
|||||||
27,32,
|
27,32,1,
|
||||||
0xe0,0xf8,0xfc,0xfc,0xfc,0x7c,0x78,0x78,0x70,0x70,0x60,0xe0,0xc0,0xc0,0x80,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
0x00,0xe0,0xf8,0xf0,0xfc,0x03,0x7c,0x78,0x78,0x70,0x70,0x60,0xe0,0xc0,0xc0,0x80,0x80,
|
||||||
0xff,0xff,0xff,0xff,0xff,0xfc,0xf0,0xc0,0x00,0x00,0x80,0x87,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xfe,0xfc,0xfc,0xf8,0xf8,0xf0,0xf0,0xe0,
|
0xf0,0x00,0x0b,0xf0,0xff,0x05,0xfc,0xf0,0xf0,0x01,0xc0,0x00,0x00,0x80,0x87,0xf0,0xff,0x06,0xfe,0xfe,0xfc,0xfc,0xf8,0xf8,0xf0,0xf0,
|
||||||
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xf3,0xe1,0xe1,0xe1,0xe1,0xf3,0xff,0x7f,0x3f,0x3f,0x1f,0x0f,0x0f,0x07,0x03,0x03,0x01,0x00,
|
0xe0,0xf0,0xff,0x09,0xf3,0xf0,0xe1,0x04,0xf3,0xff,0x7f,0x3f,0x3f,0x1f,0x0f,0x0f,0x07,0x03,0x03,0x01,
|
||||||
0x07,0x1f,0x3f,0x3f,0x3f,0x3f,0x1f,0x1f,0x0f,0x07,0x07,0x03,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
0x00,0x07,0x1f,0xf0,0x3f,0x04,0x1f,0x1f,0x0f,0x07,0x07,0x03,0x01,0x01,
|
||||||
|
0xf0,0x00,0x0d,
|
||||||
+11
-1
@@ -54,12 +54,22 @@ void lcd_img(uint8_t x, uint8_t y, const pm_uchar * img, uint8_t idx, uint8_t mo
|
|||||||
const pm_uchar *q = img;
|
const pm_uchar *q = img;
|
||||||
uint8_t w = pgm_read_byte(q++);
|
uint8_t w = pgm_read_byte(q++);
|
||||||
uint8_t hb = (pgm_read_byte(q++)+7)/8;
|
uint8_t hb = (pgm_read_byte(q++)+7)/8;
|
||||||
|
bool comp = pgm_read_byte(q++);
|
||||||
bool inv = (mode & INVERS) ? true : (mode & BLINK ? BLINK_ON_PHASE : false);
|
bool inv = (mode & INVERS) ? true : (mode & BLINK ? BLINK_ON_PHASE : false);
|
||||||
q += idx*w*hb;
|
q += idx*w*hb;
|
||||||
|
uint8_t ocur=0, b;
|
||||||
for (uint8_t yb = 0; yb < hb; yb++) {
|
for (uint8_t yb = 0; yb < hb; yb++) {
|
||||||
uint8_t *p = &displayBuf[ (y / 8 + yb) * DISPLAY_W + x ];
|
uint8_t *p = &displayBuf[ (y / 8 + yb) * DISPLAY_W + x ];
|
||||||
for (uint8_t i=0; i<w; i++){
|
for (uint8_t i=0; i<w; i++){
|
||||||
uint8_t b = pgm_read_byte(q++);
|
if (ocur==0)
|
||||||
|
{
|
||||||
|
b = pgm_read_byte(q++);
|
||||||
|
if (comp && b==0xf0)
|
||||||
|
{
|
||||||
|
b = pgm_read_byte(q++);
|
||||||
|
ocur = pgm_read_byte(q++)-1;
|
||||||
|
}
|
||||||
|
} else ocur--;
|
||||||
*p++ = inv ? ~b : b;
|
*p++ = inv ? ~b : b;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+10
-9
@@ -1,9 +1,10 @@
|
|||||||
128,64,
|
128,64,1,
|
||||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
|
||||||
0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xfc,0xf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
0xf0,0xfc,0x80,0xf0,0xff,0x09,0x7f,0x7f,0xf0,0x3f,0x06,0x7f,0x7f,0xf0,0xff,0x08,0xf0,0x3f,0x05,0xff,0x7f,0x7f,0xf0,0x3f,0x04,0x7f,0xf0,0xff,0x09,0x7f,0x7f,0xf0,0x3f,0x06,0x7f,0x7f,0xf0,0xff,0x09,0xf0,0x3f,0x05,0xff,0x7f,0xf0,0x3f,0x05,0x7f,0xf0,0xff,0x04,0x7f,0x0f,0x07,0x03,0x01,0x81,0xe0,0xf0,0xf0,0x03,0xe0,0x00,0x01,0x01,0x07,0x1f,0xf0,0xff,0x05,0xbf,0xf0,0x3f,0x04,0x7f,0xf0,0xff,0x05,0x7f,0xf0,0x3f,0x05,0xbf,
|
||||||
0xff,0xff,0xff,0xff,0x3f,0x07,0x03,0x01,0x00,0xc0,0xf0,0xf8,0xfc,0xfc,0xfc,0xfc,0xf8,0x00,0x00,0x00,0x01,0x03,0xff,0xff,0xff,0x3f,0x01,0x00,0x00,0x00,0x80,0xe0,0xf8,0xfc,0xfc,0xfc,0xf8,0x00,0x00,0x00,0x00,0x01,0xff,0xff,0x3f,0x07,0x03,0x01,0x00,0x00,0x10,0x18,0x1c,0x1c,0x1c,0x1c,0x18,0x00,0x00,0x00,0x01,0x03,0xff,0xff,0xff,0xff,0x1f,0x00,0x00,0x00,0x00,0xc0,0xf8,0xfc,0xfc,0xfc,0x10,0x00,0x00,0x00,0x00,0xc0,0xff,0xff,0xff,0xe0,0x80,0x00,0x00,0x00,0x0f,0x1f,0x1f,0x1f,0x0f,0x03,0x00,0x00,0x00,0x00,0xe0,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xf8,0xe0,0x00,0x00,0x01,0x07,0x07,0x01,0x80,0xe0,0xf0,0xf8,0xfc,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,
|
0xf0,0xff,0x08,0x3f,0x07,0x03,0x01,0x00,0xc0,0xf0,0xf0,0x01,0xf8,0xf0,0xfc,0x04,0xf8,0xf0,0x00,0x03,0x01,0x03,0xf0,0xff,0x03,0x3f,0x01,0xf0,0x00,0x03,0x80,0xe0,0xf8,0xf0,0xfc,0x03,0xf8,0xf0,0x00,0x04,0x01,0xff,0xff,0x3f,0x07,0x03,0x01,0x00,0x00,0x10,0x18,0xf0,0x1c,0x04,0x18,0xf0,0x00,0x03,0x01,0x03,0xf0,0xff,0x04,0x1f,0xf0,0x00,0x04,0xc0,0xf8,0xf0,0xfc,0x03,0x10,0xf0,0x00,0x04,0xc0,0xf0,0xff,0x03,0xe0,0x80,0xf0,0x00,0x03,0x0f,0xf0,0x1f,0x03,0x0f,0x03,0xf0,0x00,0x04,0xe0,0xf0,0xff,0x06,0xfe,0xf8,0xe0,0x00,0x00,0x01,0x07,0x07,0x01,0x80,0xe0,0xf0,0xf0,0x01,0xf8,0xfc,0xfe,
|
||||||
0xff,0xff,0xff,0xff,0xe0,0xc0,0x80,0x00,0x00,0x0f,0x1f,0x1f,0x1f,0x1f,0x0f,0x07,0x01,0x80,0xc0,0xe0,0xf0,0xfe,0xff,0xff,0x07,0x00,0x00,0x00,0x00,0xc0,0x0f,0x1f,0x1f,0x1f,0x0f,0x07,0x01,0x00,0x80,0xe0,0xf0,0xfe,0xff,0xff,0xe0,0xc0,0x80,0x00,0x00,0x0e,0x0e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x1e,0x0e,0xce,0xfe,0xfe,0xff,0xff,0x7f,0x03,0x00,0x00,0x00,0x80,0xfc,0xff,0xff,0xff,0x3f,0x03,0x00,0x00,0x00,0x80,0xfc,0xff,0xff,0x1f,0x0f,0x0f,0x1f,0x1f,0x1e,0x1e,0x1e,0x0e,0x0e,0x07,0x81,0xc0,0xe0,0xf0,0xfc,0xff,0xff,0xff,0xff,0x7f,0x3f,0x1f,0x0f,0x03,0x01,0x80,0xe0,0xf0,0xf8,0xe0,0x80,0x00,0x01,0x07,0x1f,0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
|
0xf0,0xff,0x0a,0xe0,0xc0,0x80,0x00,0x00,0x0f,0xf0,0x1f,0x04,0x0f,0x07,0x01,0x80,0xc0,0xe0,0xf0,0xf0,0x01,0xfe,0xff,0xff,0x07,0xf0,0x00,0x04,0xc0,0x0f,0xf0,0x1f,0x03,0x0f,0x07,0x01,0x00,0x80,0xe0,0xf0,0xf0,0x01,0xfe,0xff,0xff,0xe0,0xc0,0x80,0x00,0x00,0x0e,0x0e,0xf0,0x1e,0x07,0x0e,0xce,0xfe,0xfe,0xff,0xff,0x7f,0x03,0xf0,0x00,0x03,0x80,0xfc,0xf0,0xff,0x03,0x3f,0x03,0xf0,0x00,0x03,0x80,0xfc,0xff,0xff,0x1f,0x0f,0x0f,0x1f,0x1f,0xf0,0x1e,0x03,0x0e,0x0e,0x07,0x81,0xc0,0xe0,0xf0,0xf0,0x01,0xfc,0xf0,0xff,0x04,0x7f,0x3f,0x1f,0x0f,0x03,0x01,0x80,0xe0,0xf0,0xf0,0x01,0xf8,0xe0,0x80,0x00,0x01,0x07,0x1f,0x7f,
|
||||||
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x1f,0x00,0x00,0x00,0x00,0xc0,0xfe,0xff,0xff,0xfe,0xfe,0xfe,0xfe,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xfe,0xfe,0xfe,0xfe,0xff,0xff,0xff,0xff,0xff,0xfe,0xfe,0xfe,0xfe,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xfe,0xfe,0xfe,0xfe,0xfe,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0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
0xf0,0x1f,0x80,
|
||||||
|
0xf0,0x00,0x80,
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
18,8,
|
18,8,0,
|
||||||
0x00,0x08,0x1c,0x08,0x08,0x08,0x1c,0x08,0x00,0x00,0x08,0x22,0x00,0x49,0x00,0x22,0x08,0x00,
|
0x00,0x08,0x1c,0x08,0x08,0x08,0x1c,0x08,0x00,0x00,0x08,0x22,0x00,0x49,0x00,0x22,0x08,0x00,
|
||||||
0x00,0x00,0x00,0x00,0x22,0x7f,0x22,0x00,0x00,0x00,0x08,0x22,0x00,0x49,0x00,0x22,0x08,0x00,
|
0x00,0x00,0x00,0x00,0x22,0x7f,0x22,0x00,0x00,0x00,0x08,0x22,0x00,0x49,0x00,0x22,0x08,0x00,
|
||||||
0x00,0x08,0x22,0x00,0x49,0x00,0x22,0x08,0x00,0x00,0x00,0x22,0x7f,0x22,0x00,0x00,0x00,0x00,
|
0x00,0x08,0x22,0x00,0x49,0x00,0x22,0x08,0x00,0x00,0x00,0x22,0x7f,0x22,0x00,0x00,0x00,0x00,
|
||||||
|
|||||||
+37
-1
@@ -12,7 +12,7 @@ if sys.argv[3] == "img":
|
|||||||
rows = 1
|
rows = 1
|
||||||
if len(sys.argv) > 4:
|
if len(sys.argv) > 4:
|
||||||
rows = int(sys.argv[4])
|
rows = int(sys.argv[4])
|
||||||
f.write("%d,%d,\n" % (width, height/rows))
|
f.write("%d,%d,0,\n" % (width, height/rows))
|
||||||
for y in range(0, height, 8):
|
for y in range(0, height, 8):
|
||||||
for x in range(width):
|
for x in range(width):
|
||||||
value = 0
|
value = 0
|
||||||
@@ -21,6 +21,42 @@ if sys.argv[3] == "img":
|
|||||||
value += 1 << z
|
value += 1 << z
|
||||||
f.write("0x%02x," % value)
|
f.write("0x%02x," % value)
|
||||||
f.write("\n")
|
f.write("\n")
|
||||||
|
|
||||||
|
elif sys.argv[3] == "imgc":
|
||||||
|
rows = 1
|
||||||
|
if len(sys.argv) > 4:
|
||||||
|
rows = int(sys.argv[4])
|
||||||
|
f.write("%d,%d,1,\n" % (width, height/rows))
|
||||||
|
val=0
|
||||||
|
ocur=0
|
||||||
|
for y in range(0, height, 8):
|
||||||
|
for x in range(width):
|
||||||
|
value = 0
|
||||||
|
for z in range(8):
|
||||||
|
if image.pixel(x, y+z) == Qt.qRgb(0, 0, 0):
|
||||||
|
value += 1 << z
|
||||||
|
if (val==value) & (ocur<255):
|
||||||
|
ocur+=1
|
||||||
|
else:
|
||||||
|
if ocur>1:
|
||||||
|
if ocur>2:
|
||||||
|
f.write("0xf0,0x%02x,0x%02x," % (val,ocur))
|
||||||
|
else:
|
||||||
|
f.write("0x%02x,0x%02x," % (val,val))
|
||||||
|
else:
|
||||||
|
if val!=0xf0:
|
||||||
|
f.write("0x%02x," % val)
|
||||||
|
else:
|
||||||
|
f.write("0xf0,0xf0,0x01,")
|
||||||
|
val=value
|
||||||
|
ocur=1
|
||||||
|
f.write("\n")
|
||||||
|
if ocur>0:
|
||||||
|
if ocur>1: f.write("0xf0,0x%02x,0x%02x," % (val,ocur))
|
||||||
|
else:
|
||||||
|
if val!=0xf0: f.write("0x%02x," % val)
|
||||||
|
else: f.write("0xf0,0xf0,0x01,")
|
||||||
|
|
||||||
elif sys.argv[3] == "char":
|
elif sys.argv[3] == "char":
|
||||||
for y in range(0, height, 8):
|
for y in range(0, height, 8):
|
||||||
for x in range(width):
|
for x in range(width):
|
||||||
|
|||||||
Reference in New Issue
Block a user