Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Britney Beatey
- * 6/20/17
- * LCD Scrolling
- */
- #include <LiquidCrystal.h>
- LiquidCrystal lcd (12, 10, 2, 4, 7, 13);
- const int photoPin = A1;
- int photoVal =0;
- void setup() {
- // put your setup code here, to run once:
- pinMode (photoPin, INPUT);
- lcd.begin(16,2);
- lcd.clear();
- }
- void loop()
- {
- photoVal = analogRead(photoPin);
- lcd.print("the value is: ");
- lcd.setCursor(6,1);
- lcd.print (photoVal);
- delay(100);
- lcd.clear();
- // put your main code here, to run repeatedly:
- //for(int counter = 0; counter < 12; counter++)
- //{
- // lcd.setCursor (counter, 0);
- // lcd.print("Britney");
- // delay(300);
- // lcd.clear();
- //}
- }
Add Comment
Please, Sign In to add comment