We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b3d117 commit 9979ec1Copy full SHA for 9979ec1
library/lcd/lcd.c
@@ -20,11 +20,11 @@
20
void lcd_init(void)
21
{
22
// Initialize LCD command and data lines
23
- LCD_PORT_DATA.DIRSET = LCD_RS | LCD_E;
24
- LCD_PORT_CTRL.DIRSET = LCD_DB3 | LCD_DB2 | LCD_DB1 | LCD_DB0;
+ LCD_PORT_CTRL.DIRSET = LCD_RS | LCD_E;
+ LCD_PORT_DATA.DIRSET = LCD_DB3 | LCD_DB2 | LCD_DB1 | LCD_DB0;
25
26
- LCD_PORT_DATA.OUTCLR = LCD_RS | LCD_E;
27
- LCD_PORT_CTRL.OUTCLR = LCD_DB3 | LCD_DB2 | LCD_DB1 | LCD_DB0;
+ LCD_PORT_CTRL.OUTCLR = LCD_RS | LCD_E;
+ LCD_PORT_DATA.OUTCLR = LCD_DB3 | LCD_DB2 | LCD_DB1 | LCD_DB0;
28
29
// Wait until LCD has started
30
_delay_ms(LCD_STARTUP_TIME);
0 commit comments