Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "Screen.h"
- #include </opt/Sming/Sming/Libraries/LiquidCrystal/LiquidCrystal_I2C.h>
- #define I2CLCDADDR 0x27
- LiquidCrystalI2C LCDScreen(I2CLCDADDR, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE);
- void Screen::InitLCD()
- {
- LCD_Screen.begin(20, 4); // initialize the lcd for 16 chars 2 lines, turn on backlight
- }
- void Screen::Clear()
- {
- if( Screen:s_instance == null )
- {
- s_instance = new Screen();
- }
- for (int i = 0; i <= 3; i++)
- {
- for (int ii = 0; ii <= 20; ii++)
- {
- Screen::s_instance->chars[i][ii] = ' '; // i nie ma błędu
- }
- }
- }
- void Screen::SendToLCD()
- {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement