diff --git a/74C922.h b/74C922.h index a7ac22c..cda3d20 100644 --- a/74C922.h +++ b/74C922.h @@ -1,6 +1,7 @@ #ifndef H74C922_H #define H74C922_H #include <stdint.h> +#include <stdbool.h> // Pin Definitions #define ENCODER_A_PIN PD6 diff --git a/GDM1602K.c b/GDM1602K.c index b642f70..8c442ff 100644 --- a/GDM1602K.c +++ b/GDM1602K.c @@ -58,10 +58,10 @@ void lcd_init() { lcd_4bit_init(); // lcd_send(1, 0b01111000); - lcd_send(0, 0x01); // Clear screen - lcd_send(0, 0x02); // Return home - lcd_send(0, 0b00001100); // Display on, no cursor - lcd_send(0, 0b00101000); + lcd_send(0, 0x01); // Clear screen + lcd_send(0, 0x02); // Return home + lcd_send(0, 0xC); // Display on, no cursor + lcd_send(0, 0x28); } void lcd_clear() { lcd_send(0, 0x01); }