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:
@ -19,7 +19,7 @@ void setup(){
|
||||
void loop(){
|
||||
bar=String(""); // empty the string
|
||||
// read the sensors and add them to the string
|
||||
bar=bar+RobotMotor.readIR(0)+' '+RobotMotor.readIR(1)+' '+RobotMotor.readIR(2)+' '+RobotMotor.readIR(3)+' '+RobotMotor.readIR(4);
|
||||
bar=bar+RobotMotor.IRread(1)+' '+RobotMotor.IRread(2)+' '+RobotMotor.IRread(3)+' '+RobotMotor.IRread(4)+' '+RobotMotor.IRread(5);
|
||||
// print out the values
|
||||
Serial.println(bar);
|
||||
delay(100);
|
||||
|
Reference in New Issue
Block a user