#include "General_Stuff.h" const PROGMEM byte imagetest[3000] = { R"(4F4F4F4F4F4F4F4F4F4F4F4F4F4F4F4F4F4F4F4F4F4F4F4F )" }; const PROGMEM image_t image_tiny85 = { // Sketch name, only used for serial printing {"Firmware attiny85"}, // Chip name, only used for serial printing {"attiny85"}, // Low Two Signature bytes of Tiny85 (full signature: 0x1E930B) 0x930B, // Programming fuses, written before writing to flash. Fuses set to // zero are untouched. {0xFF, 0x62 | 0x80, 0xDF, 0xFF}, // {lock, low, high, extended} (OR operation with low fuse disables 1/8 clock divider) // Normal fuses, written after writing to flash (but before // verifying). Fuses set to zero are untouched. {0x0, 0xE2, 0x5F, 0x0}, // {lock, low, high, extended} // Fuse verify mask. Any bits set to zero in these values are // ignored while verifying the fuses after writing them. All (and // only) bits that are unused for this atmega chip should be zero // here. {0x00, 0x00, 0x00, 0x00}, // {lock, low, high, extended} // size of chip flash in bytes 8192, // size in bytes of flash page (paragraph 20.4 and table 20-8 in datasheet) 64, // The actual image to flash. This can be copy-pasted as-is from a // .hex file. If you do, replace all lines below starting with a // colon, but make sure to keep the start and end markers {R"( and // )"} in place. {R"( :1000000015C02FC085C22DC08DC22CC02AC029C0EA :1000100028C027C026C025C024C023C022C000C4D9 :100020002AC44CC467C47FC4DDC4EEC411241FBEFF :10003000CFE5D2E0DEBFCDBF10E0A0E6B0E0E6E65F :10004000FEE002C005900D92A439B107D9F720E077 :10005000A4E9B0E001C01D92A43DB207E1F716D3B8 :1000600000C7CECF1F920F920FB60F9211242F937D :100070008F939F9382EB82BF86B390919700809578 :10008000282F292790918F009223892F8095809384 :100090008F0090918E009223982790938E00822358 :1000A000892390919700982790939700209197002B :1000B000909196008223892B8093960080919700DF :1000C000847219F484E680939400809194008150A6 :1000D00019F0809394000BC084E180939400809188 :1000E0009700909195008472892B809395009F9141 :1000F0008F912F910F900FBE0F901F901895F8942D :00000001FF )"} }; /* * Table of defined images. The first one matching the chip's signature * is used. */ const image_t *images[] = { &image_tiny85 }; uint8_t NUMIMAGES = sizeof(images)/sizeof(images[0]);