#include "U8glib.h"
// U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_DEV_0 | U8G_I2C_OPT_NO_ACK | U8G_I2C_OPT_FAST); // Fast I2C / TWI
// Use this line for I2C connection. If you have issues, try removing U8G_I2C_OPT_NO_ACK.
U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_DEV_0 | U8G_I2C_OPT_FAST);
// U8GLIB_SSD1306_128X64 u8g(13, 11, 8, 9, 10); // SPI connection
// for SPI connection, use this wiring:
// GND > GND
// VCC > 5V
// SCL > 13
// SDA > 11
// RES > 10
// DC > 9
// CS > 8
// All the arrays below are generated from images using image2cpp website
// scroll down to see the actual code
// 'Secado General', 16x16px
const unsigned char epd_bitmap_Secado_General [] PROGMEM = {
0x07, 0xe0, 0x18, 0x18, 0x21, 0x24, 0x50, 0x02, 0x48, 0x0a, 0x84, 0x01, 0x83, 0x81, 0xa2, 0x45,
0x82, 0x41, 0x81, 0x81, 0xa0, 0x85, 0x40, 0x82, 0x48, 0x12, 0x21, 0x84, 0x18, 0x18, 0x07, 0xe0
};
// 'Secado de Tabaco', 16x16px
const unsigned char epd_bitmap_Secado_de_Tabaco [] PROGMEM = {
0x00, 0x00, 0xf8, 0x00, 0x86, 0x00, 0x81, 0x80, 0x90, 0x40, 0x88, 0x20, 0x84, 0x2f, 0x44, 0xb1,
0x42, 0xc1, 0x42, 0x85, 0x25, 0x89, 0x11, 0x91, 0x08, 0xa1, 0x07, 0xc2, 0x00, 0xfc, 0x00, 0x00
};
// 'Secado Luxury', 16x16px
const unsigned char epd_bitmap_Secado_Luxury [] PROGMEM = {
0x00, 0x0e, 0x07, 0xf1, 0x18, 0x01, 0x20, 0x01, 0x40, 0x01, 0x43, 0xf1, 0x84, 0x4e, 0x8a, 0xa0,
0x89, 0x22, 0x8a, 0xa2, 0x84, 0x42, 0x43, 0x84, 0x40, 0x04, 0x20, 0x08, 0x18, 0x30, 0x07, 0xc0
};
// 'Secado Indefinido', 16x16px
const unsigned char epd_bitmap_Secado_Indefinido [] PROGMEM = {
0x00, 0x00, 0x03, 0xf0, 0x00, 0x08, 0x01, 0xe4, 0x00, 0x12, 0x00, 0xca, 0x06, 0x2a, 0x07, 0x2a,
0x07, 0x8a, 0x07, 0xc2, 0x07, 0xc0, 0x0a, 0x00, 0x1f, 0x00, 0x20, 0x80, 0x7f, 0xc0, 0x00, 0x00
};
// 'Icono secado harinas', 16x16px
const unsigned char epd_bitmap_Icono_secado_harinas [] PROGMEM = {
0x40, 0x05, 0xe0, 0x02, 0x40, 0x05, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x20, 0xe1,
0x91, 0x12, 0x2a, 0x4c, 0x04, 0x04, 0x4a, 0x12, 0x10, 0x42, 0x09, 0x0d, 0xf6, 0x30, 0x03, 0xc7
};
// 'guineo icon', 16x16px (Secado Frutas)
const unsigned char epd_bitmap_guineo_icon [] PROGMEM = {
0xa0, 0x08, 0x70, 0x1c, 0x20, 0x1e, 0x00, 0x3e, 0x00, 0x3e, 0x0e, 0x3c, 0x1f, 0x7e, 0x3f, 0x7e,
0x42, 0xfc, 0x01, 0x81, 0x02, 0x5d, 0x0f, 0xde, 0x3f, 0xee, 0x7f, 0xee, 0x7f, 0x84, 0xbe, 0x08
};
// 'Secado Personalizado', 16x16px
const unsigned char epd_bitmap_Secado_Personalizado [] PROGMEM = {
0x00, 0x00, 0x7f, 0xfe, 0x40, 0x02, 0x7f, 0xfe, 0x40, 0x02, 0x43, 0xe2, 0x40, 0x22, 0x40, 0x42,
0x40, 0x42, 0x40, 0x82, 0x40, 0x82, 0x41, 0x1e, 0x41, 0x14, 0x40, 0x18, 0x7f, 0xf2, 0x00, 0x00
};
// 'Creditos', 16x16px
const unsigned char epd_bitmap_Creditos [] PROGMEM = {
0x00, 0x00, 0x00, 0x08, 0x00, 0x94, 0x10, 0x08, 0x10, 0x00, 0x6c, 0x00, 0x10, 0x10, 0x10, 0x10,
0x00, 0x00, 0x00, 0xc6, 0x00, 0x00, 0x00, 0x10, 0x04, 0x10, 0x0a, 0x00, 0x04, 0x00, 0x00, 0x00
};
// Array of all bitmaps for convenience. (Total bytes used to store images in PROGMEM = 288)
const int epd_bitmap_allArray_LEN = 8;
const unsigned char* bitmap_icons[epd_bitmap_allArray_LEN] = {
epd_bitmap_Secado_General,
epd_bitmap_Secado_de_Tabaco,
epd_bitmap_Secado_Luxury,
epd_bitmap_Secado_Indefinido,
epd_bitmap_Icono_secado_harinas,
epd_bitmap_guineo_icon,
epd_bitmap_Secado_Personalizado,
epd_bitmap_Creditos
};
// 'Secadora menu (QR)', 128x64px
const unsigned char epd_bitmap_Secadora_menu__QR_ [] PROGMEM = {
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, 0x02,
0x00, 0x00, 0x00, 0x00, 0x3f, 0xf9, 0xfd, 0xf3, 0x83, 0x01, 0x0f, 0xfe, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x30, 0x19, 0xf1, 0x81, 0xe7, 0x20, 0x0c, 0x06, 0x00, 0x00, 0x00, 0x02,
0x00, 0x00, 0x00, 0x00, 0x20, 0x09, 0xf1, 0x80, 0xe7, 0x20, 0x08, 0x02, 0x00, 0x00, 0x00, 0x00,
0x00, 0x1f, 0x80, 0x00, 0x27, 0xc9, 0xcf, 0xf0, 0x04, 0xde, 0xc9, 0xf2, 0x00, 0x00, 0x00, 0x02,
0x00, 0x00, 0x40, 0x20, 0x27, 0xc9, 0xcf, 0xf0, 0x0c, 0xdc, 0xc9, 0xf2, 0x00, 0x08, 0x00, 0x00,
0x00, 0x0f, 0x20, 0x40, 0x27, 0xc8, 0x3d, 0x83, 0x1c, 0x38, 0xc9, 0xf2, 0x00, 0x08, 0x00, 0x07,
0x00, 0x00, 0x90, 0x40, 0x27, 0xc9, 0x3f, 0xfc, 0xe0, 0x34, 0xc9, 0xf2, 0x00, 0x78, 0xe0, 0x07,
0x00, 0x06, 0x50, 0x40, 0x27, 0xc9, 0xbf, 0xfc, 0xe0, 0x26, 0xc9, 0xf2, 0x00, 0x89, 0x10, 0x07,
0x00, 0x31, 0x50, 0x20, 0x20, 0x08, 0x3e, 0x1f, 0x9b, 0xde, 0x08, 0x02, 0x00, 0x89, 0x10, 0x00,
0x00, 0x39, 0x50, 0x00, 0x30, 0x18, 0x3e, 0x1f, 0x9b, 0xde, 0x0c, 0x06, 0x00, 0x89, 0x10, 0x02,
0x00, 0x3c, 0x50, 0x00, 0x3f, 0xf9, 0xb2, 0x6c, 0x9b, 0x26, 0xcf, 0xfe, 0x00, 0x89, 0x10, 0x00,
0x00, 0x3e, 0x10, 0x40, 0x00, 0x00, 0x43, 0xec, 0xfb, 0x19, 0xc0, 0x00, 0x00, 0x89, 0x10, 0x02,
0x00, 0x3e, 0x00, 0x20, 0x00, 0x00, 0x43, 0xec, 0xfb, 0x19, 0xc0, 0x00, 0x00, 0x78, 0xe0, 0x00,
0x00, 0x50, 0x00, 0x00, 0x21, 0xff, 0xbd, 0x93, 0x78, 0xc1, 0x31, 0xbe, 0x00, 0x00, 0x00, 0x02,
0x00, 0xf8, 0x00, 0x00, 0x21, 0xff, 0xbd, 0x93, 0x70, 0xc1, 0xb1, 0xbe, 0x00, 0x00, 0x00, 0x00,
0x01, 0x04, 0x00, 0x00, 0x1e, 0xc7, 0xf2, 0x0c, 0xe3, 0xd9, 0xf1, 0xfc, 0x00, 0x00, 0x00, 0x02,
0x03, 0xfe, 0x00, 0x00, 0x19, 0x0e, 0x30, 0x7f, 0x03, 0xd9, 0xc8, 0xf2, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x19, 0x0e, 0x30, 0x7f, 0x03, 0xd9, 0xc8, 0x72, 0x00, 0x00, 0x00, 0x02,
0x00, 0x00, 0x00, 0x00, 0x1e, 0x07, 0xf1, 0x8f, 0x1b, 0x06, 0x3e, 0x7e, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x1e, 0x07, 0xf0, 0x8f, 0x11, 0x06, 0x3e, 0x7e, 0x00, 0x00, 0x00, 0x02,
0x00, 0x00, 0x00, 0x00, 0x39, 0x3f, 0xbc, 0x1c, 0x80, 0x21, 0xce, 0x02, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x3f, 0xc6, 0x02, 0x6c, 0x10, 0xdf, 0xf1, 0xce, 0x00, 0x00, 0x00, 0x02,
0x00, 0x00, 0x00, 0x00, 0x3f, 0xc6, 0x02, 0x6c, 0x18, 0xdf, 0xf1, 0xce, 0x00, 0x00, 0x00, 0x00,
0x0f, 0xff, 0xc0, 0x00, 0x38, 0x3f, 0x8f, 0x9c, 0xfc, 0x1f, 0xc9, 0xfe, 0x00, 0x00, 0x00, 0x02,
0x08, 0x00, 0x40, 0x00, 0x38, 0x3f, 0x8f, 0x9c, 0xfc, 0x0f, 0xcd, 0xfe, 0x00, 0x00, 0x00, 0x00,
0x0f, 0xff, 0xc0, 0x00, 0x07, 0xc1, 0xfc, 0x10, 0x60, 0xc7, 0x0e, 0x70, 0x00, 0x00, 0x00, 0x02,
0x08, 0x00, 0x40, 0x20, 0x26, 0xc9, 0xe2, 0x10, 0x61, 0x38, 0xce, 0x3e, 0x00, 0x00, 0x40, 0x00,
0x08, 0xf8, 0x40, 0x40, 0x26, 0xc9, 0xc2, 0x10, 0x63, 0x38, 0xce, 0x3e, 0x00, 0x00, 0x40, 0x02,
0x08, 0x08, 0x40, 0x40, 0x26, 0xf1, 0xcc, 0x03, 0x64, 0x20, 0x00, 0x70, 0x01, 0xe3, 0xc7, 0x00,
0x08, 0x10, 0x40, 0x40, 0x26, 0xf1, 0xcc, 0x03, 0x6e, 0x20, 0x00, 0x70, 0x03, 0x34, 0x48, 0x82,
0x08, 0x10, 0x40, 0x20, 0x19, 0x39, 0xbd, 0x8c, 0xff, 0xc1, 0xf9, 0x82, 0x00, 0x34, 0x48, 0x80,
0x08, 0x20, 0x40, 0x00, 0x20, 0xc6, 0x7d, 0x9c, 0xfb, 0xc9, 0x80, 0x42, 0x01, 0xf4, 0x48, 0x82,
0x08, 0x20, 0x40, 0x00, 0x20, 0xc6, 0x7d, 0x9c, 0xfb, 0xd9, 0x00, 0x42, 0x03, 0x34, 0x48, 0x80,
0x08, 0x43, 0xc0, 0x40, 0x26, 0xfe, 0x41, 0xe3, 0x60, 0xe7, 0xff, 0x80, 0x03, 0x34, 0x48, 0x82,
0x08, 0x42, 0x80, 0x20, 0x26, 0xfe, 0x61, 0xe2, 0x60, 0xe7, 0xff, 0x80, 0x01, 0xf3, 0xc7, 0x00,
0x08, 0x03, 0x00, 0x00, 0x27, 0xc6, 0x7f, 0xfc, 0x7b, 0xdf, 0xc1, 0xb2, 0x00, 0x00, 0x00, 0x02,
0x0f, 0xfe, 0x40, 0x00, 0x07, 0xbf, 0xb7, 0x3c, 0x9b, 0xdf, 0xfc, 0x42, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x07, 0x3f, 0xb2, 0x1c, 0x9b, 0xdf, 0xfe, 0x42, 0x00, 0x00, 0x00, 0x02,
0x00, 0x00, 0x00, 0x00, 0x39, 0xf1, 0xb2, 0x63, 0x98, 0x26, 0x37, 0xfe, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x39, 0xf1, 0xb2, 0x63, 0x90, 0x66, 0x37, 0xfe, 0x00, 0x00, 0x00, 0x02,
0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x71, 0xec, 0x63, 0xe1, 0x0e, 0x02, 0x00, 0x00, 0x00, 0x00,
0x0f, 0xff, 0xff, 0xe0, 0x39, 0x00, 0x00, 0x00, 0x87, 0xc1, 0xcd, 0x10, 0x03, 0xff, 0xff, 0xe2,
0x10, 0x00, 0x00, 0x00, 0x39, 0x00, 0x00, 0x00, 0x87, 0xc1, 0xc9, 0xb0, 0x00, 0x00, 0x00, 0x10,
0x20, 0x00, 0x00, 0x00, 0x3f, 0x3f, 0xfd, 0xf3, 0x7c, 0x1f, 0x07, 0xfe, 0x00, 0x00, 0x00, 0x1a,
0x20, 0x00, 0x00, 0x00, 0x3f, 0x3f, 0xf9, 0xf2, 0x7c, 0x1f, 0x07, 0xfe, 0x00, 0x00, 0x00, 0x18,
0x20, 0x01, 0x00, 0x00, 0x26, 0x06, 0x41, 0x90, 0x7b, 0xe6, 0x3f, 0xf0, 0x00, 0x00, 0x00, 0x1a,
0x20, 0x12, 0x80, 0x00, 0x20, 0x79, 0xf3, 0xf2, 0x1b, 0xf9, 0xff, 0x8e, 0x00, 0x00, 0x00, 0x18,
0x22, 0x01, 0x00, 0x00, 0x20, 0xf9, 0xf3, 0xf3, 0x1b, 0xf9, 0xff, 0x8e, 0x00, 0x00, 0x00, 0x1a,
0x22, 0x00, 0x00, 0x20, 0x00, 0x01, 0x80, 0x60, 0xff, 0x00, 0xc1, 0xb0, 0x00, 0x3e, 0x00, 0x18,
0x2d, 0x80, 0x00, 0x40, 0x00, 0x01, 0x80, 0x61, 0xff, 0x00, 0xc1, 0x90, 0x00, 0x21, 0x80, 0x1a,
0x22, 0x02, 0x00, 0x40, 0x3f, 0xf9, 0xbe, 0x13, 0xe0, 0xf8, 0xc9, 0x8e, 0x00, 0x20, 0x60, 0x18,
0x22, 0x02, 0x00, 0x40, 0x30, 0x19, 0xbf, 0x9c, 0x01, 0xdf, 0xc1, 0x86, 0x00, 0x24, 0x10, 0x1a,
0x20, 0x00, 0x00, 0x40, 0x20, 0x09, 0xbf, 0x9c, 0x03, 0xdf, 0xc1, 0x82, 0x00, 0x22, 0x09, 0xf8,
0x20, 0x18, 0xc0, 0x40, 0x27, 0xc9, 0xce, 0x7f, 0x18, 0xc7, 0xff, 0x80, 0x00, 0x21, 0x0b, 0xfa,
0x20, 0x00, 0x00, 0x40, 0x27, 0xc9, 0xcf, 0x7f, 0x10, 0x87, 0xff, 0x00, 0x00, 0x11, 0x2c, 0x38,
0x20, 0x02, 0x00, 0x40, 0x27, 0xc9, 0xcf, 0xf0, 0xe0, 0x00, 0x38, 0x0e, 0x00, 0x10, 0xb0, 0x3a,
0x20, 0x82, 0x00, 0x20, 0x27, 0xc8, 0xc1, 0xb3, 0xc7, 0xe0, 0x01, 0xc6, 0x00, 0x10, 0xa1, 0x38,
0x21, 0x40, 0x00, 0x00, 0x27, 0xc8, 0x41, 0x93, 0x87, 0xe0, 0x01, 0xc2, 0x00, 0x09, 0x62, 0x3a,
0x20, 0x80, 0x00, 0x00, 0x20, 0x08, 0x70, 0x13, 0x18, 0xe6, 0x09, 0xfe, 0x00, 0x04, 0x64, 0x38,
0x20, 0x00, 0x00, 0x00, 0x30, 0x18, 0x70, 0x12, 0x18, 0xe6, 0x0d, 0xfe, 0x00, 0x02, 0x28, 0x5a,
0x1f, 0xff, 0xff, 0xe0, 0x3f, 0xf9, 0xbc, 0x0c, 0x7b, 0x26, 0xce, 0x72, 0x03, 0xc1, 0xf0, 0x90,
0x0f, 0xff, 0xff, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xc0, 0x3f, 0x00
};
// 'Neco Arc (2)', 128x64px
const unsigned char epd_bitmap_Neco_Arc__2_ [] PROGMEM = {
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, 0x02,
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, 0x02,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x1f, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02,
0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x80, 0x00, 0x00, 0x08, 0x00, 0x00,
0x00, 0x0f, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x58, 0x00, 0x00, 0x08, 0x00, 0x07,
0x00, 0x00, 0x90, 0x00, 0x00, 0x1f, 0x00, 0x00, 0x10, 0x00, 0x68, 0x00, 0x00, 0x78, 0xe0, 0x07,
0x00, 0x06, 0x50, 0x00, 0x00, 0x61, 0xf0, 0x00, 0x00, 0x00, 0x58, 0x00, 0x00, 0x89, 0x10, 0x07,
0x00, 0x31, 0x50, 0x00, 0x01, 0xc0, 0x0f, 0x00, 0x00, 0x00, 0x50, 0x00, 0x00, 0x89, 0x10, 0x00,
0x00, 0x39, 0x50, 0x00, 0x07, 0x40, 0x00, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x89, 0x10, 0x02,
0x00, 0x3c, 0x50, 0x00, 0x04, 0x80, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x89, 0x10, 0x00,
0x00, 0x3e, 0x10, 0x00, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x89, 0x10, 0x02,
0x00, 0x3e, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x78, 0xe0, 0x00,
0x00, 0x50, 0x00, 0x00, 0x01, 0x00, 0x0c, 0x00, 0x30, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x02,
0x00, 0xf8, 0x00, 0x00, 0x01, 0x00, 0x10, 0x00, 0x0c, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00,
0x01, 0x04, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x02, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x02,
0x03, 0xfe, 0x00, 0x00, 0x03, 0x00, 0x60, 0x00, 0x01, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x03, 0x01, 0x80, 0x00, 0x00, 0x60, 0x80, 0x00, 0x00, 0x00, 0x00, 0x02,
0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x00, 0x00, 0xff, 0xd9, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x01, 0x02, 0x7e, 0x03, 0x12, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02,
0x00, 0x00, 0x00, 0x00, 0x01, 0x0d, 0x9d, 0x82, 0x12, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x01, 0x12, 0x14, 0x44, 0x12, 0x10, 0x40, 0x00, 0x00, 0x00, 0x00, 0x02,
0x0f, 0xff, 0xc0, 0x00, 0x01, 0x94, 0x14, 0x28, 0x12, 0x10, 0xa0, 0x00, 0x00, 0x00, 0x00, 0x00,
0x08, 0x00, 0x40, 0x00, 0x00, 0x88, 0x14, 0x30, 0x12, 0x11, 0x10, 0x00, 0x00, 0x00, 0x00, 0x02,
0x0f, 0xff, 0xc0, 0x00, 0x06, 0x10, 0x14, 0x30, 0x0a, 0x21, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00,
0x08, 0x00, 0x40, 0x00, 0x04, 0x10, 0x14, 0x30, 0x0a, 0x42, 0x10, 0x00, 0x00, 0x00, 0x40, 0x00,
0x08, 0xf8, 0x40, 0x00, 0x06, 0x10, 0x14, 0x28, 0x07, 0x82, 0x10, 0x00, 0x00, 0x00, 0x40, 0x02,
0x08, 0x08, 0x40, 0x00, 0x0c, 0x10, 0x14, 0x27, 0x1e, 0x02, 0x08, 0x00, 0x01, 0xe3, 0xc7, 0x00,
0x08, 0x10, 0x40, 0x00, 0x08, 0x10, 0x14, 0x40, 0xe0, 0x82, 0x08, 0x00, 0x01, 0x34, 0x48, 0x82,
0x08, 0x10, 0x40, 0x00, 0x10, 0x0c, 0x1d, 0x80, 0x00, 0x82, 0x08, 0x00, 0x00, 0x34, 0x48, 0x80,
0x08, 0x20, 0x40, 0x00, 0x10, 0x83, 0xfe, 0x00, 0x40, 0xc4, 0x08, 0x00, 0x01, 0xf4, 0x48, 0x82,
0x08, 0x20, 0x40, 0x00, 0x20, 0x82, 0x01, 0x10, 0x20, 0x44, 0x08, 0x00, 0x01, 0x34, 0x48, 0x80,
0x08, 0x43, 0xc0, 0x00, 0x21, 0x02, 0x01, 0x30, 0x20, 0xc4, 0x0e, 0x00, 0x01, 0x34, 0x48, 0x82,
0x08, 0x42, 0x80, 0x00, 0x61, 0x01, 0x00, 0xf8, 0x60, 0xc4, 0x09, 0x00, 0x01, 0xf3, 0xc7, 0x00,
0x08, 0x03, 0x00, 0x00, 0x61, 0x00, 0x80, 0x17, 0x81, 0x24, 0x08, 0x80, 0x00, 0x00, 0x00, 0x02,
0x0f, 0xfe, 0x40, 0x00, 0x41, 0x00, 0x60, 0x08, 0x06, 0x24, 0x08, 0x80, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x43, 0x00, 0x10, 0x18, 0x0c, 0x24, 0x09, 0x00, 0x00, 0x00, 0x00, 0x02,
0x00, 0x00, 0x00, 0x00, 0xc2, 0x00, 0x8c, 0x08, 0x98, 0x74, 0x0b, 0xc0, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0xc2, 0x00, 0x83, 0x8c, 0x80, 0xdc, 0x0a, 0x20, 0x00, 0x00, 0x00, 0x02,
0x00, 0x00, 0x00, 0x00, 0x7e, 0x01, 0x88, 0x03, 0x00, 0x8c, 0x0c, 0x2c, 0x00, 0x00, 0x00, 0x00,
0x0f, 0xff, 0xff, 0x80, 0x02, 0x03, 0x9c, 0x40, 0x00, 0x84, 0x0c, 0x32, 0x01, 0xff, 0xff, 0xe2,
0x10, 0x00, 0x00, 0x00, 0x02, 0x06, 0xbc, 0xc0, 0x00, 0x84, 0x0c, 0x23, 0x00, 0x00, 0x00, 0x10,
0x20, 0x00, 0x00, 0x00, 0x02, 0x0c, 0xe7, 0x80, 0x01, 0x84, 0x00, 0x21, 0x00, 0x00, 0x00, 0x1a,
0x20, 0x00, 0x00, 0x00, 0x02, 0x18, 0x40, 0x00, 0x02, 0xc0, 0x00, 0x21, 0x00, 0x00, 0x00, 0x18,
0x20, 0x01, 0x00, 0x00, 0x02, 0x70, 0x00, 0x00, 0x04, 0xc0, 0x00, 0x23, 0x00, 0x00, 0x00, 0x1a,
0x20, 0x12, 0x80, 0x00, 0x03, 0xc0, 0x00, 0x00, 0x04, 0x40, 0x00, 0x02, 0x00, 0x00, 0x00, 0x18,
0x22, 0x01, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x1a,
0x22, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x03, 0x00, 0x3e, 0x00, 0x18,
0x2d, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x03, 0x00, 0x21, 0x80, 0x1a,
0x22, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x02, 0x00, 0x20, 0x60, 0x18,
0x22, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x02, 0x00, 0x24, 0x10, 0x1a,
0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x04, 0x00, 0x22, 0x09, 0xf8,
0x20, 0x18, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x04, 0x00, 0x21, 0x0b, 0xfa,
0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x04, 0x00, 0x11, 0x2c, 0x38,
0x20, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x04, 0x00, 0x10, 0xb0, 0x3a,
0x20, 0x82, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x08, 0x00, 0x10, 0xa1, 0x38,
0x21, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x80, 0x00, 0x78, 0x00, 0x09, 0x62, 0x3a,
0x20, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x78, 0x07, 0xc0, 0x00, 0x04, 0x64, 0x38,
0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0xf8, 0x00, 0x00, 0x02, 0x28, 0x5a,
0x1f, 0xff, 0xff, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xc1, 0xf0, 0x90,
0x0f, 0xff, 0xff, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xc0, 0x3f, 0x00
};
// 'Gojo icon', 128x64px
const unsigned char epd_bitmap_Gojo_icon [] PROGMEM = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x03, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x03, 0x01, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x03, 0x03, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x1f, 0x0f, 0x0f, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x1d, 0x1d, 0x0f, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x19, 0x31, 0x39, 0x80, 0x0c, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x1b, 0x23, 0xb1, 0x80, 0x18, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x78, 0x73, 0xc3, 0xc6, 0x07, 0xf0, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x78, 0x73, 0xc3, 0xce, 0x07, 0x90, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x68, 0x63, 0x83, 0x8f, 0xf8, 0x30, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x58, 0x63, 0x83, 0x0f, 0xf0, 0x70, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x47, 0x83, 0x00, 0x38, 0x01, 0x80, 0x10, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x66, 0x82, 0x00, 0x30, 0x01, 0x80, 0x30, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x64, 0x00, 0x00, 0x00, 0x03, 0xff, 0xe0, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x64, 0x00, 0x00, 0x00, 0x07, 0xff, 0x30, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x64, 0x00, 0x00, 0x00, 0x07, 0xc0, 0x60, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x07, 0xc0, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x0f, 0xc0, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0xcf, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0xf3, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x60, 0x00, 0x00, 0x00, 0x00, 0x7f, 0x80, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x38, 0x60, 0x00, 0x00, 0x00, 0x00, 0x7e, 0xf0, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x01, 0xff, 0xff, 0xff, 0x80, 0x00, 0xc0, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x01, 0xff, 0xff, 0xff, 0x80, 0x07, 0xc0, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x1f, 0xff, 0xff, 0xff, 0xe0, 0x7c, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x9f, 0xff, 0xff, 0xff, 0xe0, 0x7c, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xf4, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xf0, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xf0, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xf0, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xf8, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xfc, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xfc, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x78, 0x00, 0x00, 0x00, 0x06, 0x07, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x78, 0x00, 0x00, 0x00, 0x06, 0x07, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x1c, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x80, 0x1c, 0xc0, 0x00, 0x01, 0xf0, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x80, 0x1c, 0xc0, 0x00, 0x01, 0xe0, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x07, 0x00, 0x00, 0x07, 0xc0, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x07, 0x00, 0x00, 0x07, 0x80, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x0f, 0xff, 0x80, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x0f, 0xff, 0x80, 0x00, 0x05, 0x00, 0x40,
0x40, 0x05, 0x00, 0x00, 0x00, 0x07, 0xff, 0xff, 0xff, 0xff, 0xff, 0x80, 0x00, 0x03, 0x80, 0xe0,
0xe0, 0x02, 0x00, 0x00, 0x00, 0x03, 0x7f, 0xff, 0xff, 0xff, 0xff, 0x80, 0x00, 0x01, 0x00, 0xf0,
0x40, 0x05, 0x00, 0x00, 0x00, 0x03, 0xff, 0xff, 0xff, 0xff, 0xff, 0x80, 0x00, 0x00, 0x01, 0xf0,
0x40, 0x00, 0x00, 0x00, 0x00, 0x03, 0xff, 0xff, 0xff, 0xff, 0xf8, 0x00, 0x00, 0x00, 0x01, 0xf0,
0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xff, 0xff, 0xff, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x71, 0xe0,
0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xff, 0xff, 0xff, 0xc0, 0x00, 0x00, 0x00, 0x00, 0xfb, 0xf0,
0xc0, 0x00, 0x00, 0x00, 0x00, 0x03, 0xff, 0xff, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x01, 0xfb, 0xf0,
0x20, 0xe1, 0x00, 0x00, 0x00, 0x00, 0x7f, 0xff, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x02, 0x17, 0xe0,
0x91, 0x12, 0x00, 0x00, 0x00, 0x00, 0x7f, 0xff, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0c, 0x08,
0x2a, 0x4c, 0x00, 0x00, 0x00, 0x00, 0x07, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0xe8,
0x04, 0x04, 0x00, 0x00, 0x00, 0x00, 0x07, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7e, 0xf0,
0x4a, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xff, 0x70,
0x10, 0x42, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xff, 0x70,
0x09, 0x0d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xfc, 0x20,
0xf6, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0xf0, 0x40,
0x03, 0xc7, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};
// 'scrollbar_background', 8x64px
const unsigned char bitmap_scrollbar_background [] PROGMEM = {
0x00, 0x02, 0x00, 0x02, 0x00, 0x02, 0x00, 0x02, 0x00, 0x02, 0x00, 0x02, 0x00, 0x02, 0x00, 0x02,
0x00, 0x02, 0x00, 0x02, 0x00, 0x02, 0x00, 0x02, 0x00, 0x02, 0x00, 0x02, 0x00, 0x02, 0x00, 0x02,
0x00, 0x02, 0x00, 0x02, 0x00, 0x02, 0x00, 0x02, 0x00, 0x02, 0x00, 0x02, 0x00, 0x02, 0x00, 0x02,
0x00, 0x02, 0x00, 0x02, 0x00, 0x02, 0x00, 0x02, 0x00, 0x02, 0x00, 0x02, 0x00, 0x02, 0x00, 0x00
};
// 'item_sel_outline', 128x21px
const unsigned char bitmap_item_sel_outline [] PROGMEM = {
0x1f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc0,
0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20,
0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30,
0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30,
0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30,
0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30,
0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30,
0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30,
0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30,
0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30,
0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30,
0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30,
0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30,
0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30,
0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30,
0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30,
0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30,
0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30,
0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30,
0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xe0,
0x1f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xc0
};
// ------------------ end generated bitmaps from image2cpp ---------------------------------
const int NUM_ITEMS = 8; // number of items in the list
const int MAX_ITEM_LENGTH = 20; // maximum characters for the item name
char menu_items [NUM_ITEMS] [MAX_ITEM_LENGTH] = { // array with item names
{ "Secado General" },
{ "Secado Tabaco" },
{ "Secado Luxury" },
{ "S..Indefinido" },
{ "Secado Harinas" },
{ "Secado Frutas" },
{ "S..Customizado" },
{ "Creditos" },
};
// Define the index for the "Creditos" item
// Make sure this matches the position in the menu_items array
const int CREDITS_ITEM_INDEX = 7; // "Creditos" is the 8th item (index 7)
#define BUTTON_UP_PIN 12 // pin for UP button
#define BUTTON_SELECT_PIN 8 // pin for SELECT button
#define BUTTON_DOWN_PIN 4 // pin for DOWN button
#define DEMO_PIN 13 // pin for demo mode, use switch or wire to enable or disable demo mode
int button_up_clicked = 0; // only perform action when button is clicked, and wait until another press
int button_select_clicked = 0; // same as above
int button_down_clicked = 0; // same as above
int item_selected = 0; // which item in the menu is selected
int item_sel_previous; // previous item - used in the menu screen to draw the item before the selected one
int item_sel_next; // next item - used in the menu screen to draw next item after the selected one
// current_screen:
// 0 = menu
// For Creditos: 1 = Neco Arc, 2 = Gojo, 3 = QR Code
// For other items: 1 = data display screen for the selected drying mode
int current_screen = 0;
int demo_mode = 0; // when demo mode is set to 1, it automatically goes over all the screens, 0 = control menu with buttons
int demo_mode_state = 0; // demo mode state = which screen and menu item to display
int demo_mode_delay = 0; // demo mode delay = used to slow down the screen switching
void setup() {
u8g.setColorIndex(1); // set the color to white
// define pins for buttons
// INPUT_PULLUP means the button is HIGH when not pressed, and LOW when pressed
// since it´s connected between some pin and GND
pinMode(BUTTON_UP_PIN, INPUT_PULLUP); // up button
pinMode(BUTTON_SELECT_PIN, INPUT_PULLUP); // select button
pinMode(BUTTON_DOWN_PIN, INPUT_PULLUP); // down button
pinMode(DEMO_PIN, INPUT_PULLUP);
}
// --- Placeholder functions for drying mode screens ---
// You will implement the actual logic for each drying mode here.
void drawSecadoGeneralScreen() {
u8g.setFont(u8g_font_unifont);
u8g.drawStr(0, 20, "Secado General");
u8g.drawStr(0, 40, "Datos aqui...");
}
void drawSecadoTabacoScreen() {
u8g.setFont(u8g_font_unifont);
u8g.drawStr(0, 20, "Secado Tabaco");
u8g.drawStr(0, 40, "Info especifica...");
}
void drawSecadoLuxuryScreen() {
u8g.setFont(u8g_font_unifont);
u8g.drawStr(0, 20, "Secado Luxury");
u8g.drawStr(0, 40, "Detalles de lujo...");
}
void drawSecadoIndefinidoScreen() {
u8g.setFont(u8g_font_unifont);
u8g.drawStr(0, 20, "Secado Indefinido");
u8g.drawStr(0, 40, "Parametros...");
}
void drawSecadoHarinasScreen() {
u8g.setFont(u8g_font_unifont);
u8g.drawStr(0, 20, "Secado Harinas");
u8g.drawStr(0, 40, "Proceso para harinas...");
}
void drawSecadoFrutasScreen() {
u8g.setFont(u8g_font_unifont);
u8g.drawStr(0, 20, "Secado Frutas");
u8g.drawStr(0, 40, "Temperatura y humedad...");
}
void drawSecadoCustomizadoScreen() {
u8g.setFont(u8g_font_unifont);
u8g.drawStr(0, 20, "Secado Customizado");
u8g.drawStr(0, 40, "Configuracion personalizada...");
}
// Function to draw the current screen based on selected item and screen mode
void drawScreen(int selected_item, int screen_mode) {
if (selected_item == CREDITS_ITEM_INDEX) {
// Pantallas de créditos (imágenes grandes)
if (screen_mode == 1) {
u8g.drawBitmapP(0, 0, 128 / 8, 64, epd_bitmap_Secadora_menu__QR_); // QR (128x64)
u8g.setFont(u8g_font_unifont);
// u8g.drawStr(0, 60, ";)");
}
else if (screen_mode == 2) {
u8g.drawBitmapP(0, 0, 128 / 8, 64, epd_bitmap_Gojo_icon); // Gojo (128x64)
// u8g.drawStr(0, 60, "Gojo");
}
else if (screen_mode == 3) {
u8g.drawBitmapP(0, 0, 128 / 8, 64, epd_bitmap_Neco_Arc__2_); // Neco Arc (128x64)
// u8g.drawStr(0, 60, "Neco Arc");
}
} else {
// Display data/code for other drying modes
switch (selected_item) {
case 0: drawSecadoGeneralScreen(); break;
case 1: drawSecadoTabacoScreen(); break;
case 2: drawSecadoLuxuryScreen(); break;
case 3: drawSecadoIndefinidoScreen(); break;
case 4: drawSecadoHarinasScreen(); break;
case 5: drawSecadoFrutasScreen(); break;
case 6: drawSecadoCustomizadoScreen(); break;
// No default needed as CREDITS_ITEM_INDEX is handled above
}
}
}
void loop() {
// when pin 13 is LOW (DEMO_PIN), enable demo mode
if (digitalRead(DEMO_PIN) == LOW) {
demo_mode = 1; // enable demo mode
} else {
demo_mode = 0; // disable demo mode
}
if (demo_mode == 1) { // when demo mode is active
demo_mode_delay++; // increase demo mode delay
if (demo_mode_delay > 30) {
demo_mode_delay = 0;
demo_mode_state++;
// Adjust demo mode state for "Creditos" cycling
if (item_selected == CREDITS_ITEM_INDEX) {
if (demo_mode_state % 4 == 0) {
current_screen = 0;
item_selected = (demo_mode_state / 4) % NUM_ITEMS;
} else if (demo_mode_state % 4 == 1) {
current_screen = 1;
} else if (demo_mode_state % 4 == 2) {
current_screen = 2;
} else if (demo_mode_state % 4 == 3) {
current_screen = 3;
}
} else {
if (demo_mode_state % 2 == 0) {
current_screen = 0;
item_selected = (demo_mode_state / 2) % NUM_ITEMS;
} else {
current_screen = 1;
}
}
if (demo_mode_state >= NUM_ITEMS * 4) {
demo_mode_state = 0;
}
}
}
if (current_screen == 0) { // MENU SCREEN
if ((digitalRead(BUTTON_UP_PIN) == LOW) && (button_up_clicked == 0)) {
item_selected = item_selected - 1;
button_up_clicked = 1;
if (item_selected < 0) {
item_selected = NUM_ITEMS - 1;
}
} else if ((digitalRead(BUTTON_DOWN_PIN) == LOW) && (button_down_clicked == 0)) {
item_selected = item_selected + 1;
button_down_clicked = 1;
if (item_selected >= NUM_ITEMS) {
item_selected = 0;
}
}
if ((digitalRead(BUTTON_UP_PIN) == HIGH) && (button_up_clicked == 1)) {
button_up_clicked = 0;
}
if ((digitalRead(BUTTON_DOWN_PIN) == HIGH) && (button_down_clicked == 1)) {
button_down_clicked = 0;
}
}
if ((digitalRead(BUTTON_SELECT_PIN) == LOW) && (button_select_clicked == 0)) {
button_select_clicked = 1;
if (item_selected == CREDITS_ITEM_INDEX) {
if (current_screen == 0) {
current_screen = 1;
}
else if (current_screen == 1) {
current_screen = 2;
}
else if (current_screen == 2) {
current_screen = 3;
}
else {
current_screen = 0;
}
} else {
if (current_screen == 0) {
current_screen = 1;
}
else {
current_screen = 0;
}
}
}
if ((digitalRead(BUTTON_SELECT_PIN) == HIGH) && (button_select_clicked == 1)) {
button_select_clicked = 0;
}
// Update previous and next items
item_sel_previous = item_selected - 1;
if (item_sel_previous < 0) {
item_sel_previous = NUM_ITEMS - 1;
}
item_sel_next = item_selected + 1;
if (item_sel_next >= NUM_ITEMS) {
item_sel_next = 0;
}
// Drawing routine
u8g.firstPage();
do {
if (current_screen == 0) { // MENU SCREEN
// selected item background
u8g.drawBitmapP(0, 22, 128 / 8, 21, bitmap_item_sel_outline);
// draw previous item
u8g.setFont(u8g_font_7x14);
u8g.drawStr(25, 15, menu_items[item_sel_previous]);
u8g.drawBitmapP(4, 2, 16 / 8, 16, bitmap_icons[item_sel_previous]);
// draw selected item
u8g.setFont(u8g_font_7x14B);
u8g.drawStr(25, 37, menu_items[item_selected]);
u8g.drawBitmapP(4, 24, 16 / 8, 16, bitmap_icons[item_selected]);
// draw next item
u8g.setFont(u8g_font_7x14);
u8g.drawStr(25, 59, menu_items[item_sel_next]);
u8g.drawBitmapP(4, 46, 16 / 8, 16, bitmap_icons[item_sel_next]);
// draw scrollbar
u8g.drawBitmapP(120, 0, 8 / 8, 64, bitmap_scrollbar_background);
u8g.drawBox(125, 64 / NUM_ITEMS * item_selected, 3, 64 / NUM_ITEMS);
} else {
// Dibuja la pantalla correspondiente al ítem seleccionado
drawScreen(item_selected, current_screen);
}
} while (u8g.nextPage());
// Small delay outside the drawing loop
delay(100);
}