~epii/+junk/avr_clcd-drv

« back to all changes in this revision

Viewing changes to clcd-drv.c

  • Committer: epii
  • Date: 2013-09-08 17:08:32 UTC
  • Revision ID: public.epii@gmail.com-20130908170832-maksh37vv26ebuvn
fixed bug.

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
 
91
91
bool clcd_init(){
92
92
        // Setup port.
93
 
        set_ddr_read();
 
93
        set_ddr_write();
94
94
        ddr(CLCD_RS_PORT)   |= 1<<CLCD_RS_PIN;
95
95
        ddr(CLCD_E_PORT)    |= 1<<CLCD_E_PIN;
96
96
        port(CLCD_E_PORT)   &= ~(1<<CLCD_E_PIN);