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.
Diff: main.cpp
- Revision:
- 1:49a28b314101
- Parent:
- 0:4d8fdecf2bbf
--- a/main.cpp Thu Dec 15 16:47:32 2022 +0000
+++ b/main.cpp Thu Dec 15 16:48:46 2022 +0000
@@ -19,7 +19,7 @@
static char info = 0x55;
void toggle(void);
-void outputFloat(void);
+
int ig = 0;
float leitura;
float leitura_count;
@@ -81,13 +81,6 @@
}
}
-void outputFloat(float value) {
- unsigned char * charPtr = (unsigned char*)&value; // create a char * that points to the location of value
- for (int i = 0; i<4; i++) { // each byte in value
- pc.putc(*(charPtr + i)); // send the next value pointed to by charPtr it over the serial port.
- }
-}
-
void toggle() {
ig++;
if (ig==31){