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: ADS1115 BME280 CronoDot SDFileSystem mbed
Fork of Outdoor_UPAS_v1_2_powerfunction by
Diff: main.cpp
- Revision:
- 20:30a00cd18e21
- Parent:
- 19:b835bfb61e35
- Child:
- 21:bb10efc5bf57
--- a/main.cpp Thu Mar 24 19:26:25 2016 +0000 +++ b/main.cpp Thu Mar 24 23:03:34 2016 +0000 @@ -598,6 +598,17 @@ BT_IRST = 1; wait(1); + //CODE ADDED TO TEST EEPROM + ////////////////////////////////////////// + uint8_t serialNumWriter [2] = {0x00,0x11}; + uint8_t putDataInMe[2] = {0x02,0x00}; + E2PROM.write(0x00034,serialNumWriter,2); + wait(.5); + E2PROM.read(0x00034,putDataInMe,2); + if(putDataInMe[0] == 0x02)pumps=1; + ////////////////////////////////////////// + //END CODE ADDED TO TEST EEPROM + RGB_LED.set_led(0,0,1); STtime.tm_sec = 10; // 0-59 STtime.tm_min = 30; // 0-59 @@ -654,7 +665,7 @@ wait(0.5); - uint8_t serialNumberAndType[6] = {0x50,0x53}; + uint8_t serialNumberAndType[6] = {0x50,0x53,}; E2PROM.read(0x00034,serialNumberAndType+2,2);