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: SDFileSystem mbed
Fork of PES4_Programme by
Diff: source/main.cpp
- Revision:
- 72:172b40dd16ee
- Parent:
- 61:086bcd5ca968
- Child:
- 73:7fd3701def5b
--- a/source/main.cpp Thu Apr 05 20:35:23 2018 +0000 +++ b/source/main.cpp Fri Apr 06 06:51:47 2018 +0000 @@ -25,6 +25,30 @@ int colorTime = 0; int r,b,g; +/* SD write Test*/ + +s_time medicationTime; +medicationTime.hour = 15; +medicationTime.minute = 30; + +s_time outputTime; +outputTime.day = getTime().day; +outputTime.month = getTime().month; +outputTime.year = getTime().year; +outputTime.hour = getTime().hour; +outputTime.minute = getTime().minute; + +s_medContainer medication; +medication.container[0] = 1; +medication.container[1] = 2; +medication.container[2] = 2; +medication.container[3] = 1; +medication.container[4] = 1; +medication.container[5] = 2; + +int success = 1; +char user = 0; + void summ(void) { if(summer.read()>0) { @@ -273,6 +297,21 @@ printf("exit demo"); break; + + case 60 + printf("write_medProtocol\n\r"); + write_medProtocol(medicationTime, outputTime, medication, success, user); + + break; + + case 61 + + break; + + case 62 + + break; + default: state = 47; /* Go to State Switch */ break;