Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed projet_embarque WakeUp SigfoxToiture DHT DS1820
Revision 5:a5a213701cd1, committed 2019-10-15
- Comitter:
- 3874313
- Date:
- Tue Oct 15 15:02:36 2019 +0000
- Parent:
- 4:54e0220b3d83
- Commit message:
- fin
Changed in this revision
| SigfoxToiture.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/SigfoxToiture.lib Tue Oct 15 13:08:34 2019 +0000 +++ b/SigfoxToiture.lib Tue Oct 15 15:02:36 2019 +0000 @@ -1,1 +1,1 @@ -https://os.mbed.com/users/3874313/code/SigfoxToiture/#fd9cadc78239 +https://os.mbed.com/users/3874313/code/SigfoxToiture/#835369a16129
--- a/main.cpp Tue Oct 15 13:08:34 2019 +0000
+++ b/main.cpp Tue Oct 15 15:02:36 2019 +0000
@@ -25,6 +25,7 @@
TCS34725 tcs34725(D4,D5); //I2C sda and scl
AnalogIn humigrove(A1);
AnalogIn lumiere(A5);
+AnalogIn bat(A4);
DigitalOut ledTest(LED1);
DigitalOut mos(D9);
@@ -97,7 +98,7 @@
wait(1);
printf("R:%d, G:%d, B:%d\n\r", r, g, b);
sigfox.send((s16)(Temp_Air*10),(u16)(Humi_Air*10),(s16)(Temp_Sol*10),(u16)(Humi_Sol*10),
- (u8)Lumiere,(u8)r,(u8)g,(u8)b);
+ (u8)Lumiere,(u8)r,(u8)g,(u8)b, (u8)((float)bat*255.0f));
wait(10);
mos = 1;
//wait(10);