//Lab06 part 1 LCD I2C backpack ADC and Photocell
/*
 
1.  LCD, ADC, and Photocell:  Keep your LCD connected from the homework.  Read steps 1, 2 and 4 on this page:
http://www.instructables.com/id/Photocell-tutorial/?ALLSTEPS

Hookup the circuit in step 5 (leave off the LED circuit) and 
Write a program to continuously print the ADC value on the LCD.

What is the ADC value in light?  __________
What is the ADC value when you cover it with your finger?  __________

Modify the program and have it continuously print the voltage with one decimal place 
(using the map() command) and the brightness like in step 6 of the sample program on the LCD.

*/
#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcd(0x27, 16, 2);

void setup() {
  lcd.init();
  lcd.backlight();
  lcd.setCursor(1, 0);
  lcd.print("Hello, Wokwi!");
}

void loop() {
  lcd.setCursor(7, 1);
  lcd.print(millis() / 1000);
}