37 lines
557 B
C++
37 lines
557 B
C++
#include <user_code.hpp>
|
|
#include <lcd.hpp>
|
|
|
|
void lcd_send_stop_bit()
|
|
{
|
|
#ifdef ENABLE_INTERNAL_LCD
|
|
Serial.write(0xFF);
|
|
Serial.write(0xFF);
|
|
Serial.write(0xFF);
|
|
#endif
|
|
}
|
|
|
|
void lcd_send_command(String command)
|
|
{
|
|
#ifdef ENABLE_INTERNAL_LCD
|
|
lcd_send_stop_bit();
|
|
Serial.print(command);
|
|
lcd_send_stop_bit();
|
|
#endif
|
|
}
|
|
|
|
void lcd_reset()
|
|
{
|
|
#ifdef ENABLE_INTERNAL_LCD
|
|
lcd_send_stop_bit();
|
|
lcd_send_command("rest");
|
|
lcd_send_stop_bit();
|
|
#endif
|
|
}
|
|
|
|
void lcd_init()
|
|
{
|
|
#ifdef ENABLE_INTERNAL_LCD
|
|
lcd_reset();
|
|
delay(750);
|
|
#endif
|
|
} |