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: MaximInterface
Diff: main.cpp
- Revision:
- 10:71359af61af8
- Parent:
- 8:a0d75dff3c9b
- Child:
- 13:6a6225690c2e
--- a/main.cpp Thu Apr 06 15:19:57 2017 -0500
+++ b/main.cpp Mon Apr 10 11:55:33 2017 -0500
@@ -49,7 +49,7 @@
static mbed::DigitalIn rightClickButton(D0);
static Display display(D11, D12, D13, D7, D6);
-static WindowManager windowManager;
+static WindowManager windowManager(display.canvas());
static mbed::I2C i2c(D14, D15);
DS2476 coproc(i2c);
@@ -71,7 +71,10 @@
while (true)
{
// Update window manager and redraw screen if necessary.
- windowManager.update(display);
+ if (windowManager.update())
+ {
+ display.update();
+ }
// Update CC3100 Wi-Fi interface.
CC3100::instance().update();
// Check if any buttons are pressed.