]> git.defcon.no Git - avrfbosd/blobdiff - testimage.h
Added support for drawing 8bpp images... Updated demo a bit...
[avrfbosd] / testimage.h
index 00dc78be9dcb190a3644e971d74c7fd3ed489e37..a5078d94cb261693d5cf070d217c69ad6c89dee4 100644 (file)
@@ -1,11 +1,14 @@
-image_widtdh = 23; // pixels
-image_height = 9;  // rows
+const uint8_t testimage_width = 23; // pixels
+const uint8_t testimage_height = 9;  // rows
 
-uint8_t image[] = {
-       0b00001111, 0b00000001, 0b11100000, 0b00100001, 0b00000100, 0b00100000
-       0b10011001, 0b00010011, 0b00100010, 0b01001001, 0b01001001, 0b00101001
-       0b00001001, 0b00100001, 0b00101001, 0b00100101, 0b00100100, 0b10001001
-       0b10010001, 0b00110010, 0b00001000, 0b01000001, 0b00001000, 0b00001111
-       0b00000001, 
-       0b11100000 // Note, last byte padded to fill one byte by adding a 0 at the end..
+const uint8_t testimage[] PROGMEM = {
+        0x0, 0x0, 0x0, 0x0, 0x1, 0x1, 0x1, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1, 0x1, 0x1, 0x1, 0x0, 0x0, 0x0, 0x0,
+        0x0, 0x0, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0, 0x1, 0x0, 0x0, 0x0,
+        0x0, 0x0, 0x1, 0x0, 0x0, 0x1, 0x1, 0x0, 0x0, 0x1, 0x0, 0x0, 0x0, 0x1, 0x0, 0x0, 0x1, 0x1, 0x0, 0x0, 0x1, 0x0, 0x0,
+        0x0, 0x1, 0x0, 0x0, 0x1, 0x0, 0x0, 0x1, 0x0, 0x0, 0x1, 0x0, 0x1, 0x0, 0x0, 0x1, 0x0, 0x0, 0x1, 0x0, 0x0, 0x1, 0x0,
+        0x1, 0x0, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0, 0x1, 0x0, 0x0, 0x1, 0x0, 0x0, 0x1, 0x0, 0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