TFT_ILI9163C/examples/bigPicture/bigPicture.ino

41 lines
161 KiB
Arduino
Raw Normal View History

2015-02-28 03:13:38 +00:00
#include <SPI.h>
#include <Adafruit_GFX.h>
#include <TFT_ILI9163C.h>
//be careful, big image! Only Teensy or DUE probably work
2015-02-28 23:03:23 +00:00
/*
Teensy3.x and Arduino's
You are using 4 wire SPI here, so:
MOSI: 11//Teensy3.x/Arduino UNO (for MEGA/DUE refere to arduino site)
MISO: 12//Teensy3.x/Arduino UNO (for MEGA/DUE refere to arduino site)
SCK: 13//Teensy3.x/Arduino UNO (for MEGA/DUE refere to arduino site)
the rest of pin below:
*/
#define __CS 10
#define __DC 9
/*
Teensy 3.x can use: 2,6,9,10,15,20,21,22,23
Arduino's 8 bit: any
DUE: check arduino site
If you do not use reset, tie it to +3V3
*/
TFT_ILI9163C tft = TFT_ILI9163C(__CS, __DC);
2015-02-28 03:13:38 +00:00
static const uint32_t image_data_batman_ume[16384] = {
0x976a40, 0xaa8a3f, 0xb49f42, 0xb3a044, 0xb19b45, 0xac983f, 0xaa963d, 0xaf9946, 0xb2a054, 0xa79668, 0x8f826f, 0x827b6b, 0x9d9976, 0xc2b684, 0xccb684, 0xcfba81, 0xcbb373, 0xae9a55, 0xac9142, 0xb19d46, 0xb8aa49, 0xabaa50, 0xb9ac50, 0xf8e55b, 0xfff256, 0xfde954, 0xfde755, 0xffea51, 0xffe84c, 0xffe64b, 0xfee749, 0xfee646, 0xfde441, 0xfbe440, 0xfee33a, 0xfce034, 0xfde336, 0xfde233, 0xffe12e, 0xfee12d, 0xfee028, 0xfee026, 0xfce027, 0xffe127, 0xfee226, 0xfee12d, 0xffde37, 0xfcd538, 0xffcd33, 0xefbf37, 0xc0a151, 0x6f562e, 0x3e3120, 0x483517, 0x694c14, 0x956c14, 0xc28b14, 0xc2881a, 0xc28918, 0xc28b17, 0xc4911e, 0xc99528, 0xcd972b, 0xce982e, 0xcb9729, 0xc99424, 0xc69225, 0xc58f22, 0xcb8d20, 0xaa771e, 0x826930, 0x746546, 0x52371c, 0x5c3611, 0x6f4014, 0x8f4514, 0xc86512, 0xeb7b15, 0xf08116, 0xf98b18, 0xfa9219, 0xf9971a, 0xf79c1a, 0xf79e1e, 0xf9a221, 0xf7a31f, 0xf6a522, 0xf6a728, 0xf5ab24, 0xf5ad25, 0xf4b125, 0xf4b125, 0xf5b225, 0xf5b426, 0xf3b429, 0xf2b529, 0xf3b32b, 0xefb530, 0xf4b12e, 0xf0ab2a, 0xf2c54e, 0xf4dc7a, 0xfcda80, 0xeec164, 0xbd9138, 0xb68735, 0xc09044, 0xbe9253, 0xc0965a, 0xcea261, 0xcda162, 0xb98a44, 0xa8742b, 0xa26922, 0xa76729, 0xa46427, 0x9a5d24, 0x995d2b, 0x925622, 0x864913, 0x82470d, 0x884b12, 0x8e4c10, 0x844212, 0x71360e, 0x5f2e0d, 0x44260e, 0x31200c, 0xb59e3e, 0xbba53f, 0xb29b3d, 0xaf973d, 0xb8a144, 0xbda646, 0xb3a248, 0x9c8d4a, 0x827757, 0x6e6754, 0x615f53, 0x69665d, 0x787264, 0x87785b, 0x937e53, 0x988656, 0x968047, 0x997e3b, 0xa88d3e, 0xb69d43, 0xb3a94a, 0xaaa348, 0xe1cd5a, 0xfff660, 0xfcee57, 0xfeea55, 0xffe955, 0xffea53, 0xfde84f, 0xffe84c, 0xfee749, 0xffe948, 0xfde543, 0xfde441, 0xfee33a, 0xfde137, 0xfee439, 0xfee334, 0xffe22f, 0xfee12d, 0xfee02a, 0xfee028, 0xfde02a, 0xffe129, 0xfee227, 0xfee12d, 0xffde37, 0xfdd538, 0xffcb37, 0xebbc3a, 0xb69649, 0x70582c, 0x3f331d, 0x493616, 0x755113, 0x7f5813, 0x815c16, 0x7f5712, 0xa07727, 0xac8c35, 0xac8e36, 0xc6974f, 0xd79e5b, 0xd3a05e, 0xd19f60, 0xcf9d56, 0xcc9a53, 0xcc9957, 0xd29b5b, 0xa97c45, 0x6d5129, 0x594427, 0x523517, 0x5d3a12, 0x6e3e16, 0x894518, 0xc66919, 0xe58316, 0xed8719, 0xfa8f1b, 0xfd971b, 0xfc9d1d, 0xfaa21d, 0xf9a21f, 0xf8a420, 0xf9a720, 0xf9ab25, 0xf8ab27, 0xf6ac27, 0xf6ae26, 0xf5b027, 0xf4b125, 0xf4b325, 0xf5b327, 0xf4b52a, 0xf3b62a, 0xf2b42d, 0xf3b431, 0xf1b02e, 0xf2b938, 0xf2c64b, 0xf5be4a, 0xe8be5c, 0xeecb71, 0xc99742, 0xa07121, 0x996d22, 0x996f25, 0x98732f, 0x91733d, 0xa48a59, 0xbc9e6c, 0xbb9c66, 0xa57c48, 0x956229, 0x92571f, 0x9c5829, 0x9a5625, 0x8a4816, 0x7f3d0d, 0x84410d, 0x884510, 0x88470f, 0x914c0b, 0x974d10, 0x873d0c, 0x77360c, 0x622d0e, 0xb29f39, 0xb2993d, 0xbca33e, 0xbaa645, 0xa49142, 0x998749, 0x7b6e4b, 0x565246, 0x4c453b, 0x4e4b3c, 0x5d5747, 0x514b3b, 0x3e372f, 0x42362a, 0x695935, 0x7c6836, 0x87743c, 0x98813d, 0xa38c40, 0xb4963e, 0xafa045, 0xbfad49, 0xfde966, 0xfef260, 0xfeee5b, 0xfeec5a, 0xfeea57, 0xffeb58, 0xfde954, 0xfde84f, 0xfde64a, 0xfeea4b, 0xfde545, 0xfde442, 0xfde43f, 0xfee33a, 0xfde239, 0xfee437, 0xfde432, 0xfde22f, 0xffe02e, 0xffe02d, 0xfee12d, 0xffe22c, 0xfce229, 0xfee12e, 0xfedd38, 0xfdd43a, 0xfecb32, 0xeabf3f, 0xae944a, 0x725728, 0x4c3a22, 0x453416, 0x725313, 0x815c18, 0x7a5715, 0x7a5715, 0x9c7730, 0xa8883d, 0x9a7f32, 0xaa8541, 0xba8d4c, 0xb68d4b, 0xb68d4f, 0xb58c4e, 0xb5884f, 0xb28750, 0xb2854c, 0xab864f, 0x745b32, 0x4d351b, 0x563919, 0x623b14, 0x6f4014, 0x944816, 0xc36819, 0xe78918, 0xee8d1a, 0xf7971e, 0xfc9d1d, 0xfda21e, 0xfca821, 0xfcaa22, 0xfbaa23, 0xfbae24, 0xfab127, 0xf9af28, 0xf8b028, 0xf7b229, 0xf8b328, 0xf7b428, 0xf7b628, 0xf5b728, 0xf3b628, 0xf3b62a, 0xf3b32b, 0xf4b631, 0xf3b931, 0xf4be3a, 0xf3b136, 0xf7a92d, 0xe6a733, 0xc8a446, 0xcfa251, 0xaa7b2d, 0xa37430, 0x9d702c, 0x8a6727, 0x785d28, 0x735823, 0x745c2c, 0x8e774e, 0x967f55, 0x856d41, 0x7d643c, 0x74542d, 0x754119, 0x813a10, 0x8c400e, 0x89400d, 0x843d0f, 0x8a400f, 0x89400b, 0x8a400f, 0x954510, 0x994b0d, 0x8f420a, 0xbda239, 0xbca442, 0xa08d3e, 0x7a6b40, 0x594f43, 0x4f4a44, 0x4e4a3f, 0x554d40, 0x544c39, 0x4e4631, 0x4e432f, 0x4a3f2b, 0x483f2e, 0x40382d, 0x574831, 0x756335, 0x826d34, 0x927a3a, 0xa0863c, 0xaf9541, 0xad953b, 0xdbc152, 0xfff871, 0xfcee6b, 0xffed63, 0
};
void setup() {
tft.begin();
tft.writeScreen(image_data_batman_ume);
}
void loop(void) {
2015-02-28 23:03:23 +00:00
2015-02-28 03:13:38 +00:00
}