DIY fertilizer mixer and plant watering machine https://www.xythobuz.de/giessomat.html
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

SerialLCD.h 583B

12345678910111213141516171819202122232425262728
  1. #ifndef _SERIAL_LCD_H_
  2. #define _SERIAL_LCD_H_
  3. #include <SendOnlySoftwareSerial.h>
  4. class SerialLCD {
  5. public:
  6. SerialLCD(int tx_pin);
  7. ~SerialLCD(void);
  8. void init(void);
  9. void clear(void);
  10. void setBacklight(uint8_t val);
  11. // 0 no cursor, 1 underline, 2 blinking, 3 both
  12. void cursor(int style);
  13. void position(int line, int col);
  14. void write(const char *text);
  15. void write(int line, const char *text);
  16. void write(int line, int col, const char *text);
  17. private:
  18. SendOnlySoftwareSerial *lcd;
  19. };
  20. #endif // _SERIAL_LCD_H_