|
1 | 1 | /* |
2 | 2 | Esplora Table |
3 | 3 |
|
4 | | - Acts like a keyboard that prints some of its sensors' |
| 4 | + Acts like a keyboard that prints sensor |
5 | 5 | data in a table-like text, row by row. |
6 | | - It is a sort of "data-logger". |
7 | 6 | |
8 | | - At startup, it does nothing. It just waits for you to open a |
9 | | - spreadsheet (e.g. Google Drive spreadsheet) so it can put its |
10 | | - data. Then, by pressing Switch 1, it starts printing the table |
| 7 | + At startup, it does nothing. It waits for you to open a |
| 8 | + spreadsheet (e.g. Google Drive spreadsheet) so it can write |
| 9 | + data. By pressing Switch 1, it starts printing the table |
11 | 10 | headers and the first row of data. It waits a bit, then it |
12 | 11 | will print another row, and so on. |
13 | 12 | |
14 | | - The amount of time between each row is given by the slider. |
| 13 | + The amount of time between each row is determined by the slider. |
15 | 14 | If put to full left, the sketch will wait 10 seconds; at |
16 | 15 | full right position, it will wait 5 minutes. An intermediate |
17 | 16 | position will make the sketch wait for some time in-between. |
@@ -175,17 +174,12 @@ void logAndPrint() { |
175 | 174 | } |
176 | 175 |
|
177 | 176 | /** |
178 | | - * Similar to delay(), but allows to do something else |
179 | | - * in the meanwhile. In particular, it calls waitLoop(). |
| 177 | + * Similar to delay(), but allows the program to do something else |
| 178 | + * in the meanwhile. In particular, it calls checkSwitchPress(). |
180 | 179 | * Note 1: it may wait longer than the specified amount, not less; |
181 | 180 | * Note 2: beware of data synchronization issues, e.g. if the |
182 | | - * whileWaiting() function alters some variables used by the |
| 181 | + * activeDelay() function alters some variables used by the |
183 | 182 | * caller of this function. |
184 | | - * |
185 | | - * I discovered by chance that there's an ongoing discussion about |
186 | | - * adding yield() in the Arduino API: |
187 | | - * http://comments.gmane.org/gmane.comp.hardware.arduino.devel/1381 |
188 | | - * The purpose is the same, but for now I'm using this implementation. |
189 | 183 | */ |
190 | 184 | void activeDelay(unsigned long amount) { |
191 | 185 | unsigned long at = millis() + amount; |
|
0 commit comments