1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-30 16:24:09 +03:00

Fixed robot libraries and examples for unified Arduino core

This commit is contained in:
Xun Yang
2013-08-21 23:04:42 +02:00
parent 293e46bfb4
commit ec31a2ee5c
34 changed files with 2984 additions and 243 deletions

View File

@ -23,7 +23,7 @@ void setup() {
Robot.begin();
// initialize the robot's screen
Robot.beginLCD();
Robot.beginTFT();
}
void loop() {
@ -31,14 +31,14 @@ void loop() {
value=Robot.analogRead(TK4);
// write the sensor value on the screen
Robot.fill(0, 255, 0);
Robot.stroke(0, 255, 0);
Robot.textSize(1);
Robot.text(value, 0, 0);
delay(500);
// erase the previous text on the screen
Robot.fill(255, 255, 255);
Robot.stroke(255, 255, 255);
Robot.textSize(1);
Robot.text(value, 0, 0);
}