LCD IC2 para iNcubadora
Ir para navegação
Ir para pesquisar
- include <LiquidCrystal_I2C.h>
- include <Wire.h>
LiquidCrystal_I2C lcd(0x27,16,4); // set the LCD address to 0x27 for a 20 chars and 4 line display
- include <Keypad.h>
const byte ROWS = 4; //four rows const byte COLS = 4; //three columns char keys[ROWS][COLS] = {
{'1','2','3','A'}, {'4','5','6','B'}, {'7','8','9','C'}, {'*','0','#','D'},
};
byte rowPins[ROWS] = {9,10,11,12}; //connect to the row pinouts of the keypad byte colPins[COLS] = {8,7,6,5}; //connect to the column pinouts of the keypad
void setup() {
lcd.init(); // initialize the lcd // Print a message to the LCD. lcd.backlight(); //lcd Setup// lcd.begin(16, 2); lcd.setCursor(0, 0); lcd.print("Target:"); lcd.setCursor(10,0); lcd.print("C"); lcd.setCursor(0, 1); lcd.print("Status:"); lcd.setCursor(10,1); lcd.print("C");
}
void loop() { }