Seeed Studio Grove Sensors Example

Dependencies:   mbed DHT DigitDisplay

Fork of STM32_Read_Sensors_Example by AT&T Developer Summit Hackathon 2016

Files at this revision

API Documentation at this revision

Comitter:
dangriffin
Date:
Thu Dec 18 18:00:17 2014 +0000
Parent:
6:d25c6da3f0b6
Commit message:
Minor correction to message scrolling loop.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Dec 18 17:53:04 2014 +0000
+++ b/main.cpp	Thu Dec 18 18:00:17 2014 +0000
@@ -157,7 +157,7 @@
         {
             DigitalDisplay.write(position, message[(position + MessageStart) % ArraySize]);
         }
-        MessageStart++;
+        MessageStart = (MessageStart + 1) % ArraySize;
 
         wait(.3);
 #endif