File tree Expand file tree Collapse file tree 2 files changed +20
-8
lines changed Expand file tree Collapse file tree 2 files changed +20
-8
lines changed Original file line number Diff line number Diff line change @@ -9,15 +9,22 @@ void setup() {
9
9
void loop () {
10
10
Scout.loop ();
11
11
12
- // blink once for 250ms
13
- RgbLed.blinkRed (250 );
14
- Scout.delay (1000 );
12
+ Serial. println ( " blink red once for 100ms " );
13
+ RgbLed.blinkRed (100 );
14
+ Scout.delay (1500 );
15
15
16
- // blink once using the default (500ms)
16
+ Serial. println ( " blink green once using the default (500ms)" );
17
17
RgbLed.blinkGreen ();
18
- Scout.delay (1000 );
18
+ Scout.delay (1500 );
19
19
20
- // blink once using 750ms
21
- RgbLed.blinkBlue (750 );
20
+ Serial.println (" blink blue once for 1000ms" );
21
+ RgbLed.blinkBlue (1000 );
22
+ Scout.delay (1500 );
23
+
24
+ Serial.println (" blink yellow continuously every 100ms" );
25
+ RgbLed.enableContinuousBlink ();
26
+ RgbLed.blinkYellow (100 );
27
+ Scout.delay (1500 );
28
+ RgbLed.disableContinuousBlink ();
22
29
Scout.delay (1000 );
23
30
}
Original file line number Diff line number Diff line change @@ -9,8 +9,13 @@ void setup() {
9
9
void loop () {
10
10
Scout.loop ();
11
11
12
+ int tempInCelsius = Scout.getTemperature ();
13
+ int tempInFahrenheit = tempInCelsius * 9 /5 + 32 ;
12
14
Serial.print (" Temperature: " );
13
- Serial.println (Scout.getTemperature ());
15
+ Serial.print (tempInCelsius);
16
+ Serial.print (" C, " );
17
+ Serial.print (tempInFahrenheit);
18
+ Serial.println (" F" );
14
19
15
20
Scout.delay (1000 );
16
21
}
You can’t perform that action at this time.
0 commit comments