test program for VEML6030
Dependencies: VEML6030 mbed vt100
Revision 2:e284a78127b7, committed 2017-04-29
- Comitter:
- Rhyme
- Date:
- Sat Apr 29 07:56:30 2017 +0000
- Parent:
- 1:31b0d73cfaf4
- Commit message:
- format modified to be compatible with CSV
Changed in this revision
| VEML6030.lib | Show annotated file Show diff for this revision Revisions of this file |
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/VEML6030.lib Thu Mar 30 04:20:34 2017 +0000 +++ b/VEML6030.lib Sat Apr 29 07:56:30 2017 +0000 @@ -1,1 +1,1 @@ -https://developer.mbed.org/teams/MSS/code/VEML6030/#852cb01d2317 +https://developer.mbed.org/teams/MSS/code/VEML6030/#00f62b381f9e
--- a/main.cpp Thu Mar 30 04:20:34 2017 +0000
+++ b/main.cpp Sat Apr 29 07:56:30 2017 +0000
@@ -22,13 +22,13 @@
tty = new vt100() ;
tty->cls() ;
- printf("=== VEML6030 test %s ===\n", __DATE__) ;
-
+ printf("=== VEML6030 test for %s (%s)===\n", BOARD_NAME, __DATE__) ;
+ printf("Ambient, White\n") ;
while(1) {
als = veml6030->getALS() ;
white = veml6030->getWHITE() ;
- printf("VEML6030 ALS: %d WHITE: %d\n", als, white) ;
+ printf("%6d, %6d\n", als, white) ;
wait(1) ;
}
}
\ No newline at end of file