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.
Revision 3:2617bb7e2eab, committed 2018-02-22
- Comitter:
- collinan
- Date:
- Thu Feb 22 03:59:59 2018 +0000
- Parent:
- 2:5de47d55f618
- Commit message:
- woking feb 21 w3434
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Feb 22 03:18:47 2018 +0000
+++ b/main.cpp Thu Feb 22 03:59:59 2018 +0000
@@ -43,6 +43,7 @@
int main(void)
{
+float w_time=0.050;
// timeout.attach(&attimeout,5.0);
MMA8451Q acc(SDA, SCL, MMA8451_I2C_ADDRESS);
@@ -68,7 +69,7 @@
//wait_ms(0.10);
}
*/
- float w_time=0.1;
+
/*
while (on) {
// while (true) {
@@ -362,7 +363,13 @@
}
+
printf("End\r\n");
+ for(int b=0; b<11; b++) {
+ LED_S[b]=0;
+ wait(w_time);
+ printf("turn off\r\n");
+ }