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: ADS1015 MPU6050 PixelArray-Nucleo mbed
Fork of Nucleo-transfer by
Revision 18:3b2686cdbcb7, committed 2017-09-28
- Comitter:
- ricardo_95
- Date:
- Thu Sep 28 20:22:37 2017 +0000
- Parent:
- 17:6ec7d594c1f1
- Child:
- 19:3b5999fa7b7e
- Commit message:
- Code for pilot 1 (serial communication works, LED's above buttons should be added).
Changed in this revision
| Sensorplate/main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/Sensorplate/main.cpp Thu Sep 28 20:19:21 2017 +0000
+++ b/Sensorplate/main.cpp Thu Sep 28 20:22:37 2017 +0000
@@ -351,22 +351,21 @@
//receiving order: 8 resistive sensors, 5 electric readings, 3 accelerometer axes, 3 gyroscope axes
serial_read();
-
if (mute_flag == 1) {
- pi.printf(">01\n");
+ pi.printf(“>01\n”);
+ pc.printf(“>01\n”);
mute_flag = 0;
- LED_intern4 = 1;
- } else {
- LED_intern4 = 0;
- }
+ }
- if (new_patient_flag == 1) {
- pi.printf(">02\n");
+ if (new_patient_flag == 1) {
+ pi.printf(“>03\n”);
+ pc.printf(“>03\n”);
new_patient_flag = 0;
}
- if (reposition_flag == 1) {
- pi.printf(">03\n");
+ if (reposition_flag == 1) {
+ pi.printf(“>02\n”);
+ pc.printf(“>02\n”);
reposition_flag = 0;
}
