diff options
author | Daniel Friesel <derf@finalrewind.org> | 2016-01-13 20:55:39 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2016-01-13 20:55:39 +0100 |
commit | fb3f9e22fa89200d9f540f2417a0ea4277a0fd96 (patch) | |
tree | 3f5305f2666f6e283bdb83d9ee7892051086ff4c /main.c | |
parent | 0e42a6028b7b9330ca69e4fbeeecfa3affa53346 (diff) |
font test
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 16 |
1 files changed, 12 insertions, 4 deletions
@@ -8,7 +8,7 @@ #define SHUTDOWN_THRESHOLD 2048 -volatile uint8_t disp[32]; +volatile uint8_t disp[8]; int main (void) { @@ -34,8 +34,16 @@ int main (void) // raise timer interrupt on counter overflow (-> interrupt frequency = ~4kHz) TIMSK0 = _BV(TOIE0); - //disp = font[2]; -#if 1 + disp[0] = font[0][1]; + disp[1] = font[0][2]; + disp[2] = font[0][3]; + disp[3] = font[0][4]; + disp[4] = font[0][5]; + disp[5] = font[0][6]; + disp[6] = font[0][7]; + disp[7] = font[0][8]; + +#if 0 // smile! disp[0] = 0x08; disp[1] = 0x04; @@ -139,7 +147,7 @@ ISR(TIMER0_OVF_vect) uint8_t i; - if (++scroll == 256) { + if (++scroll == 512) { scroll = 0; if (++disp_offset == sizeof(disp)) { disp_offset = 0; |