Commit 7148802c authored by Sebastian Neuser's avatar Sebastian Neuser

example.cpp: Fix indentation

parent 203fc975
Pipeline #661 failed with stages
in 1 second
......@@ -2,17 +2,17 @@
void setup()
{
bob3.enableIRSensor(true);
bob3.enableIRSensor(true);
}
void loop()
{
int16_t proximity = bob3.getIRSensor();
int16_t red = proximity;
int16_t green = 15 - proximity;
green = green < 0 ? 0 : green;
uint16_t color = rgb(red, green, 0);
bob3.setEyes(color, color);
int16_t proximity = bob3.getIRSensor();
int16_t red = proximity;
int16_t green = 15 - proximity;
green = green < 0 ? 0 : green;
uint16_t color = rgb(red, green, 0);
bob3.setEyes(color, color);
bob3.setWhiteLeds(bob3.getArm(1), bob3.getArm(2));
bob3.setWhiteLeds(bob3.getArm(1), bob3.getArm(2));
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment