Post by geoff on Sept 3, 2020 8:53:08 GMT -8
I am working on a project that I want to use a bitmap array as the source but I have no idea how to do this. Does anyone have an example that has two or more arrays and loads them to the screen?
I have found other examples for Arduino but they use a different TFT library. Below is an example of the type of array I want to use.
I have found other examples for Arduino but they use a different TFT library. Below is an example of the type of array I want to use.
const unsigned char title []PROGMEM ={
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x7e,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
0x0,0xf,0xc0,0x0,0x3,0xf8,0x0,0x7,0xff,0xf0,0x0,0x0,0x7,0xff,0xe0,0x0,0x7,0xf0,0x3,0xff,0xc0,0xf,0xff,0xf0,0x1,0xfc,0x0,0x0,0x0,0x7f,0x0,0xff,0x0,0x3f,0xc0,
0x0,0x7f,0xfc,0x0,0x3,0xf8,0x0,0xf,0xff,0xfe,0x0,0x0,0x7,0xff,0xfc,0x0,0xf,0xf0,0x7,0xff,0xf0,0xf,0xff,0xfc,0x1,0xfc,0x0,0x0,0x0,0x7f,0x0,0xff,0x0,0x3f,0xc0,
0x1,0xff,0xff,0x0,0x7,0xf8,0x0,0xf,0xff,0xff,0x0,0x0,0x7,0xff,0xff,0x0,0xf,0xf0,0xf,0xff,0xf8,0xf,0xff,0xff,0x1,0xfc,0x0,0x0,0x0,0xff,0x0,0x7f,0x80,0x7f,0x80,
0x3,0xff,0xff,0x0,0x7,0xfc,0x0,0xf,0xff,0xff,0x80,0x0,0x7,0xff,0xff,0x80,0xf,0xf0,0x1f,0xff,0xfc,0xf,0xff,0xff,0x1,0xfc,0x0,0x0,0x0,0xff,0x80,0x7f,0x80,0x7f,0x80,
0x7,0xff,0xff,0x0,0xf,0xfc,0x0,0xf,0xff,0xff,0xc0,0x0,0x7,0xff,0xff,0xc0,0xf,0xf0,0x3f,0xff,0xfc,0xf,0xff,0xff,0x81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