Skip to content

Instantly share code, notes, and snippets.

@eendeego
Last active December 15, 2015 20:28
Show Gist options
  • Save eendeego/5318340 to your computer and use it in GitHub Desktop.
Save eendeego/5318340 to your computer and use it in GitHub Desktop.
arduino vs nokia 6100 test code
#include <ColorLCDShield.h>
#define SHIFT_TO_RED 8
#define SHIFT_TO_GREEN 4
#define SHIFT_TO_BLUE 0
#define BACKGROUND BLACK // room for growth, adjust the background color according to daylight
#define RGB(r,g,b) (((b) << SHIFT_TO_BLUE) + ((g) << SHIFT_TO_GREEN) + ((r) << SHIFT_TO_RED))
LCDShield lcd;
unsigned char x=0;
unsigned char y=0;
int c=0;
int l=0;
int x0 = 1;
int x1 = 130;
int y0 = 1;
int y1 = 130;
void setup() {
lcd.init(PHILLIPS);
// lcd.contrast(20);
// lcd.clear(BACKGROUND);
// int c = RGB(0xf, 0x0, 0x0);
// lcd.setPixel(RGB(0xf, 0x0, 0x0), 10, 10);
// lcd.setPixel(RGB(0xf, 0x0, 0x0), 10, 11);
// lcd.setPixel(RGB(0x0, 0xf, 0x0), 5, 5);
// lcd.setPixel(RGB(0x0, 0x0, 0xf), 10, 10);
// // lcd.setPixel(RGB(0x0, 0x0, 0xf), 10, 11);
// // lcd.setPixel(RGB(0x0, 0x0, 0xf), 11, 10);
// // lcd.setPixel(RGB(0x0, 0x0, 0xf), 11, 11);
// // lcd.setLine(x0, y0, x1, y0, c);
// lcd.setLine(x1, y0, x1, y1, c);
// lcd.setLine(x1, y1, x0, y1, c);
// // lcd.setLine(x0, y1, x0, y0, c);
// // lcd.setLine(0x7f, 0, 0x7f, 0x7f, GREEN);
delay(100);
}
void loop() {
// // 0xbgr
// //c = RGB(0, x >> 3, y >> 3);
// //lcd.setLine(y0, x * 2 + 1, y1, x * 2 + 1, GREEN);
// lcd.setPixel(RGB(15, x & 0x0f, y & 0x0f), x + 1, y + 1);
// if(++x > x1) {
// x = 0;
// if(++y > y1) {
// y = 0;
// lcd.printLogo();
// }
// }
}
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 1 column, instead of 2. in line 1.
0 08420000
27164914 08400000
31740046 08000000
31740047 08400000
37175610 08000000
42641024 08400000
48311950 08000000
48311951 00000000
48312388 00020000
52268957 08020000
56240007 08420000
56240009 08c20000
56240232 08c00000
56240235 08400000
56240237 08000000
56240256 08400000
56240266 08000000
56240286 08400000
56240303 08000000
56240322 08400000
56240339 08000000
56240359 08400000
56240371 08c00000
56240376 08800000
56240396 08c00000
56240410 08400000
56240412 08000000
56240431 08400000
56240448 08000000
56240467 08400000
56240484 08000000
56240504 08400000
56240516 08c00000
56240521 08800000
56240541 08c00000
56240551 08c20000
56240582 08c00000
56240585 08000000
56240600 08400000
56240611 08000000
56240630 08400000
56240647 08000000
56240667 08400000
56240683 08000000
56240703 08400000
56240720 08000000
56240739 08400000
56240756 08000000
56240776 08400000
56240792 08000000
56240812 08400000
56240824 08c00000
56240829 08800000
56240849 08c00000
56240867 08800000
56240886 08c00000
56240897 08c20000
56240928 08c00000
56240930 08400000
56240932 08000000
56240952 08400000
56240962 08000000
56240982 08400000
56240999 08000000
56241018 08400000
56241030 08c00000
56241036 08800000
56241055 08c00000
56241069 08400000
56241071 08000000
56241091 08400000
56241103 08c00000
56241108 08800000
56241127 08c00000
56241142 08400000
56241144 08000000
56241163 08400000
56241180 08000000
56241199 08400000
56241211 08c00000
56241217 08800000
56241236 08c00000
56241247 08c20000
56241277 08c00000
56241280 08400000
56241283 08000000
56241302 08400000
56241313 08000000
56241332 08400000
56241349 08000000
56241365 08400000
56241377 08c00000
56241382 08800000
56241402 08c00000
56241420 08800000
56241439 08c00000
56241457 08800000
56241477 08c00000
56241491 08400000
56241493 08000000
56241512 08400000
56241525 08c00000
56241530 08800000
56241550 08c00000
56241564 08400000
56241566 08000000
56241585 08400000
56241596 08420000
56241626 08400000
56241628 08c00000
56241631 08800000
56241651 08c00000
56241658 08400000
56241660 08000000
56241680 08400000
56241697 08000000
56241716 08400000
56241733 08000000
56241752 08400000
56241769 08000000
56241789 08400000
56241805 08000000
56241825 08400000
56241842 08000000
56241861 08400000
56241873 08c00000
56241879 08800000
56241898 08c00000
56241916 08800000
56241936 08c00000
56241947 08c20000
56241977 08c00000
56241980 08400000
56241982 08000000
56242001 08400000
56242012 08000000
56242031 08400000
56242048 08000000
56242068 08400000
56242080 08c00000
56242085 08800000
56242105 08c00000
56242123 08800000
56242142 08c00000
56242156 08400000
56242158 08000000
56242178 08400000
56242190 08c00000
56242195 08800000
56242215 08c00000
56242233 08800000
56242252 08c00000
56242266 08400000
56242267 08000000
56242285 08400000
56242296 08420000
56242330 08400000
56242332 08c00000
56242334 08800000
56242354 08c00000
56242362 08400000
56242364 08000000
56242383 08400000
56242400 08000000
56242419 08400000
56242436 08000000
56242456 08400000
56242472 08000000
56242492 08400000
56242509 08000000
56242528 08400000
56242545 08000000
56242565 08400000
56242581 08000000
56242601 08400000
56242617 08000000
56242637 08400000
56242648 08420000
56242678 08400000
56242684 08000000
56242703 08400000
56242714 08000000
56242734 08400000
56242750 08000000
56242770 08400000
56242782 08c00000
56242787 08800000
56242807 08c00000
56242821 08400000
56242823 08000000
56242842 08400000
56242859 08000000
56242879 08400000
56242891 08c00000
56242896 08800000
56242916 08c00000
56242930 08400000
56242932 08000000
56242951 08400000
56242963 08c00000
56242968 08800000
56242981 08c00000
56242992 08c20000
56243022 08c00000
56243028 08800000
56243047 08c00000
56243055 08400000
56243057 08000000
56243077 08400000
56243093 08000000
56243113 08400000
56243125 08c00000
56243130 08800000
56243150 08c00000
56243168 08800000
56243187 08c00000
56243201 08400000
56243203 08000000
56243223 08400000
56243240 08000000
56243259 08400000
56243276 08000000
56243295 08400000
56243312 08000000
56243332 08400000
56243343 08420000
56243373 08400000
56243379 08000000
56243398 08400000
56243409 08000000
56243428 08400000
56243445 08000000
56243464 08400000
56243481 08000000
56243501 08400000
56243518 08000000
56243537 08400000
56243554 08000000
56243573 08400000
56243590 08000000
56243610 08400000
56243627 08000000
56243646 08400000
56243663 08000000
56243682 08400000
56243693 08420000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment