|
123456789101112131415161718192021222324252627 |
- #ifndef LCD_H
- #define LCD_H
-
- #include <Arduino.h>
- #include <LiquidCrystal_I2C.h>
-
- class LCD {
- private:
- LiquidCrystal_I2C* lcd = nullptr; // set the LCD address to 0x27 for a 16 chars and 2 line display
- const int columns = 18;
- const int rows = 2;
-
- public:
- LCD();
- ~LCD();
-
- void init();
- void print_init_message(int calibration_weight) const;
- void print_calibration(int calib_weight) const;
- void print_weight(double weight, int precision, const char* unit) const;
- void print_weights(double grams, double grains) const;
- void print_control_result(String name, double val_min, double val_max, int result);
- void clear_row(int row) const;
- void clear() const;
- };
-
- #endif
|