Professional Documents
Culture Documents
//#define pulsante 2
#include <LiquidCrystal_I2C.h>
#include <Wire.h>
#include <hd44780.h>
#include <hd44780ioClass/hd44780_I2Cexp.h> // i2c expander i/o class header
hd44780_I2Cexp lcd;
void setup() {
// put your setup code here, to run once:
//pinMode(LED_1_PIN, OUTPUT);
Serial.begin(115200);
lcd.print("Hello, Wokwi!");
void loop() {
// put your main code here, to run repeatedly:
if(buttonStateOre==HIGH){
digitalWrite(LED_1_PIN, HIGH);
}else{
digitalWrite(LED_1_PIN, LOW);
}
// (note: line 1 is the second row, since counting begins with 0):
lcd.setCursor(0, 1);// set the cursor to column 0, line 1
// print the number of seconds since reset:
lcd.print("Counter:");
lcd.print(millis() / 1000);
*/
}