Skip to content

Commit 3ea6d83

Browse files
committed
review PCF8574 wxample
1 parent de11ae8 commit 3ea6d83

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

examples/LCDs/PCF8574/PCF8574/PCF8574.ino

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -149,14 +149,13 @@ MENU(mainMenu,"Main menu",doNothing,noEvent,wrapStyle
149149

150150
#define MAX_DEPTH 2
151151

152-
/*const panel panels[] MEMMODE={{0,0,16,2}};
153-
navNode* nodes[sizeof(panels)/sizeof(panel)];
152+
/*idx_t tops[MAX_DEPTH]={0,0};
153+
const panel panels[] MEMMODE={{0,0,16,2}};
154+
navNode* nodes[MAX_DEPTH];
154155
panelsList pList(panels,nodes,1);
155-
idx_t tops[MAX_DEPTH];
156156
lcdOut outLCD(&lcd,tops,pList);//output device for LCD
157-
menuOut* outputs[]={&outLCD};//list of output devices
158-
outputsList out(outputs,1);//outputs list with 2 outputs
159-
*/
157+
menuOut* constMEM outputs[] MEMMODE={&outLCD};//list of output devices
158+
outputsList out(outputs,1);//outputs list with 1 outputs*/
160159

161160
MENU_OUTPUTS(out,MAX_DEPTH
162161
,LCD_OUT(lcd,{0,0,16,2})
@@ -199,7 +198,7 @@ void setup() {
199198
nav.idleTask=idle;//point a function to be used when menu is suspended
200199
mainMenu[1].enabled=disabledStatus;
201200
nav.showTitle=false;
202-
lcd.setBacklight(255);
201+
lcd.setBacklight(255);
203202
lcd.setCursor(0, 0);
204203
lcd.print("Menu 4.x LCD");
205204
lcd.setCursor(0, 1);

0 commit comments

Comments
 (0)