Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <LiquidCrystal.h>
- LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
- void setup()
- {
- lcd.begin(16, 2);
- //Serial.begin(9600);
- }
- void loop()
- {
- lcd.setCursor(0, 1);
- int val = analogRead(0);
- val= (val*100)/1000;
- lcd.print("LuzAmbiente:");
- //Serial.println(val);
- lcd.print(val);
- lcd.print("%");
- delay(2000);
- lcd.clear();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement