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: AdaFruit_RGBLCDShield MCP23017 mbed RTclock
Fork of MCP_test by
Diff: MenuManager.cpp
- Revision:
- 20:93c70a1869ee
- Parent:
- 17:731a47339cb8
- Child:
- 24:e67c825ec6d8
--- a/MenuManager.cpp Thu Aug 14 12:06:47 2014 +0000
+++ b/MenuManager.cpp Sat Aug 30 16:30:27 2014 +0000
@@ -9,7 +9,9 @@
(
Module ** in_pModules,
size_t in_nModules,
- Adafruit_RGBLCDShield & in_cLCD
+ Adafruit_RGBLCDShield & in_cLCD,
+ int in_nColumns,
+ int in_nRows
)
: m_pModules(in_pModules)
, m_nModules(in_nModules)
@@ -19,6 +21,8 @@
, m_nIndex(0)
, m_nCursorX(0)
, m_nCursorY(0)
+ , m_nColumns(in_nColumns)
+ , m_nRows(in_nRows)
{
}
@@ -49,7 +53,7 @@
void MenuManager::initialise()
{
// Initialise LCD
- m_cLCD.begin(16,2);
+ m_cLCD.begin(m_nColumns,m_nRows);
createChars();
m_cLCD.setCursor(0,0);
