Converting to c99, removing gnu specific features

This commit is contained in:
Imbus 2025-02-05 14:45:00 +01:00
parent 9fbd6e95e7
commit bcb7407ca9
2 changed files with 5 additions and 4 deletions

View file

@ -1,6 +1,7 @@
#ifndef H74C922_H #ifndef H74C922_H
#define H74C922_H #define H74C922_H
#include <stdint.h> #include <stdint.h>
#include <stdbool.h>
// Pin Definitions // Pin Definitions
#define ENCODER_A_PIN PD6 #define ENCODER_A_PIN PD6

View file

@ -60,8 +60,8 @@ void lcd_init() {
// lcd_send(1, 0b01111000); // lcd_send(1, 0b01111000);
lcd_send(0, 0x01); // Clear screen lcd_send(0, 0x01); // Clear screen
lcd_send(0, 0x02); // Return home lcd_send(0, 0x02); // Return home
lcd_send(0, 0b00001100); // Display on, no cursor lcd_send(0, 0xC); // Display on, no cursor
lcd_send(0, 0b00101000); lcd_send(0, 0x28);
} }
void lcd_clear() { lcd_send(0, 0x01); } void lcd_clear() { lcd_send(0, 0x01); }