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 1:bcfd1e856c37, committed 2019-10-14
- Comitter:
- marcospostemsky
- Date:
- Mon Oct 14 02:52:25 2019 +0000
- Parent:
- 0:0b798b845ac3
- Commit message:
- Elimino blue led, no existe en la placa kl46z
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Mon Oct 14 02:39:31 2019 +0000
+++ b/main.cpp Mon Oct 14 02:52:25 2019 +0000
@@ -23,7 +23,6 @@
MMA8451Q acc(SDA, SCL, MMA8451_I2C_ADDRESS);
PwmOut rled(LED2);
PwmOut gled(LED1);
- PwmOut bled(LED3);
pc.baud(115200);
pc.printf("Acelerometro con FRDM-K64F board.\n");
@@ -38,7 +37,6 @@
z = abs(acc.getAccZ());
rled = 1.0f - x;
gled = 1.0f - y;
- bled = 1.0f - z;
wait(0.5f);
pc.printf("X: %1.2f, Y: %1.2f, Z: %1.2f\n", x, y, z);
}