This project is in process of completion. I will finish the code with shift register
I wanted to get a 10K POT working with the LED 16×2 I found in the parts box. It might come in handy later on for displaying reading. I put an SN74HC595 Shift register on it. It was not easy to wire up. I lost use of LED 13 for the I2C counter. I know somewhere in one of the storage bins, I have I2C LED displays: 16×2 and 16×4. I will be replacing this setup with it.
#include < SPI.h >
#include < LiquidCrystal.h > //remove the spaces above // Initialize the LCD screen using the latch pin LiquidCrystal lcd(5); void setup() { // set up the LCD's number of columns and rows: lcd.begin(16, 2); // Print a message to the LCD. lcd.print("hello, world!"); } void loop() { // set the cursor to column 0, line 1 // (note: line 1 is the second row, since counting begins with 0): lcd.setCursor(0, 1); // print the number of seconds since reset: lcd.print(millis()/1000); }