// LCD1602 to Arduino Uno connection example
#include <LiquidCrystal.h>
const int numOfServos = 8;
int tepTimer;
int buttonPress;
bool buttonPressed = false;
LiquidCrystal lcd(12, 11, 10, 9, 8, 7);
String servos_names[numOfServos] = {
"Tool_Rotate"
, "Tool_Height"
, "Tool_Lock"
, "Hotend_Lock"
, "Holder_Rotate"
, "Cutter_Rotate"
, "Cutter_Action"
, "WasteCup_Action"
};
void setup() {
lcd.begin(16, 2);
// you can now interact with the LCD, e.g.:
lcd.print("Hello World!");
lcd.begin(16, 2);
lcd.setCursor(0,0);
lcd.print("Ready");
lcd.setCursor(0,1);
lcd.print("");
}
void loop() {
if(millis() - tepTimer < 75) return;
tepTimer = millis();
lcd.clear();
lcd.print(analogRead(0));
}
uno:A5.2
uno:A4.2
uno:AREF
uno:GND.1
uno:13
uno:12
uno:11
uno:10
uno:9
uno:8
uno:7
uno:6
uno:5
uno:4
uno:3
uno:2
uno:1
uno:0
uno:IOREF
uno:RESET
uno:3.3V
uno:5V
uno:GND.2
uno:GND.3
uno:VIN
uno:A0
uno:A1
uno:A2
uno:A3
uno:A4
uno:A5
btn1:1.l
btn1:2.l
btn1:1.r
btn1:2.r
btn2:1.l
btn2:2.l
btn2:1.r
btn2:2.r
btn3:1.l
btn3:2.l
btn3:1.r
btn3:2.r
btn4:1.l
btn4:2.l
btn4:1.r
btn4:2.r
btn5:1.l
btn5:2.l
btn5:1.r
btn5:2.r
lcd1:VSS
lcd1:VDD
lcd1:V0
lcd1:RS
lcd1:RW
lcd1:E
lcd1:D0
lcd1:D1
lcd1:D2
lcd1:D3
lcd1:D4
lcd1:D5
lcd1:D6
lcd1:D7
lcd1:A
lcd1:K
r1:1
r1:2
r2:1
r2:2
r3:1
r3:2
r4:1
r4:2
r5:1
r5:2
r6:1
r6:2