nuclear@0: #include nuclear@0: #include nuclear@0: #include "dotmatrix.h" nuclear@0: nuclear@0: /* hardware setup nuclear@0: * - Port B[1,5]: lcd signals (see dotmatrix.h) nuclear@0: * - B1: clk nuclear@0: * - B2: Din nuclear@0: * - B3: DC nuclear@0: * - B4: CE nuclear@0: * - B5: RST nuclear@0: */ nuclear@0: nuclear@0: /*int lcd_stream_write(char c, FILE *fp);*/ nuclear@0: nuclear@0: /*FILE stream_lcd = FDEV_SETUP_STREAM(lcd_stream_write, NULL, _FDEV_SETUP_WRITE);*/ nuclear@0: nuclear@0: int main(void) nuclear@0: { nuclear@0: /* stdout = stderr = &stream_lcd; */ nuclear@0: nuclear@0: dm_init(); nuclear@0: dm_test(); nuclear@0: nuclear@0: for(;;) { nuclear@0: _delay_ms(800); nuclear@0: } nuclear@0: nuclear@0: return 0; nuclear@0: } nuclear@0: nuclear@0: #if 0 nuclear@0: int lcd_stream_write(char c, FILE *fp) nuclear@0: { nuclear@0: /* TODO terminal shit handling */ nuclear@0: return 0; nuclear@0: } nuclear@0: #endif