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: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
Diff: io.cpp
- Revision:
- 20:ef9cc1b42e9d
- Parent:
- 19:7bee744fe527
- Child:
- 21:f74b80a0cb38
--- a/io.cpp Tue Feb 18 17:17:48 2014 +0000
+++ b/io.cpp Thu Feb 20 11:51:54 2014 +0000
@@ -28,6 +28,8 @@
puts("Temperature sensor not found.");
if (!accFound)
puts("Accelerometer not found.");
+
+ lcdDisplay.cls();
}
float temperature()
@@ -67,6 +69,27 @@
}
}
+void lcd_signal(int8_t rssi, uint8_t ber)
+{
+ lcdDisplay.locate(0, 0);
+ if ((rssi == 0) && (ber == 0))
+ lcdDisplay.printf("No signal\n");
+ else
+ lcdDisplay.printf("RSSI: %d dBm BER: %d %%\n", rssi, ber);
+}
+
+void lcd_tenant(const char* tenant)
+{
+ lcdDisplay.locate(0, 11);
+ lcdDisplay.printf("Tenant: %s\n", tenant);
+}
+
+void lcd_status(const char* status)
+{
+ lcdDisplay.locate(0, 22);
+ lcdDisplay.printf("%s\n", status);
+}
+
void timer_callback(void const*)
{
if ((!btnPressed) && (button))
