Skip to content

Commit

Permalink
remove constMEM panel from examples, using const panel instead
Browse files Browse the repository at this point in the history
  • Loading branch information
neu-rah committed Jun 3, 2020
1 parent 68f0a2f commit 46e193f
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion examples/ESP32/ClickEncoderTFT/ClickEncoderTFT.ino
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ const colorDef<uint16_t> colors[6] MEMMODE = {
#define fontW 6
#define fontH 9

constMEM panel panels[] MEMMODE = {{0, 0, GFX_WIDTH / fontW, GFX_HEIGHT / fontH}}; // Main menu panel
const panel panels[] MEMMODE = {{0, 0, GFX_WIDTH / fontW, GFX_HEIGHT / fontH}}; // Main menu panel
navNode* nodes[sizeof(panels) / sizeof(panel)]; //navNodes to store navigation status
panelsList pList(panels, nodes, sizeof(panels) / sizeof(panel)); //a list of panels and nodes
//idx_t tops[MAX_DEPTH]={0,0}; // store cursor positions for each level
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ MENU(mainMenu, "Main menu", doNothing, noEvent, wrapStyle

//describing a menu output device without macros
//define at least one panel for menu output
constMEM panel panels[] MEMMODE = {{0, 0, 128 / fontW, 64 / fontH}};
const panel panels[] MEMMODE = {{0, 0, 128 / fontW, 64 / fontH}};
navNode* nodes[sizeof(panels) / sizeof(panel)]; //navNodes to store navigation status
panelsList pList(panels, nodes, 1); //a list of panels and nodes
idx_t tops[MAX_DEPTH] = {0, 0}; //store cursor positions for each level
Expand Down
2 changes: 1 addition & 1 deletion examples/SSD1306Ascii/SSD1306Ascii/SSD1306Ascii.ino
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ serialOut outSerial(Serial, serialTops);

//describing a menu output device without macros
//define at least one panel for menu output
constMEM panel panels[] MEMMODE = {{0, 0, 128 / fontW, 64 / fontH}};
const panel panels[] MEMMODE = {{0, 0, 128 / fontW, 64 / fontH}};
navNode* nodes[sizeof(panels) / sizeof(panel)]; //navNodes to store navigation status
panelsList pList(panels, nodes, 1); //a list of panels and nodes
idx_t tops[MAX_DEPTH] = {0, 0}; //store cursor positions for each level
Expand Down
2 changes: 1 addition & 1 deletion examples/TFT_HX8257/TFT_HX8257/TFT_HX8257.ino
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ serialIn serial(Serial);
idx_t serialTops[MAX_DEPTH]={0};
serialOut outSerial(Serial,serialTops);

constMEM panel panels[] MEMMODE={{0,0,480/fontW,320/fontH}};
const panel panels[] MEMMODE={{0,0,480/fontW,320/fontH}};
navNode* nodes[sizeof(panels)/sizeof(panel)];//navNodes to store navigation status
panelsList pList(panels,nodes,1);//a list of panels and nodes
idx_t gfxTops[MAX_DEPTH]={0};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ serialOut outSerial(Serial,serialTops);
#define fontW 12
#define fontH 18

constMEM panel panels[] MEMMODE = {{0, 0, GFX_WIDTH / fontW, GFX_HEIGHT / fontH}};
const panel panels[] MEMMODE = {{0, 0, GFX_WIDTH / fontW, GFX_HEIGHT / fontH}};
navNode* nodes[sizeof(panels) / sizeof(panel)]; //navNodes to store navigation status
panelsList pList(panels, nodes, 1); //a list of panels and nodes
idx_t eSpiTops[MAX_DEPTH]={0};
Expand Down
2 changes: 1 addition & 1 deletion examples/adafruitGfx/eTFT/TFT_eSPI/TFT_eSPI.ino
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ serialOut outSerial(Serial,serialTops);
#define fontW 6
#define fontH 9

constMEM panel panels[] MEMMODE = {{0, 0, GFX_WIDTH / fontW, GFX_HEIGHT / fontH}};
const panel panels[] MEMMODE = {{0, 0, GFX_WIDTH / fontW, GFX_HEIGHT / fontH}};
navNode* nodes[sizeof(panels) / sizeof(panel)]; //navNodes to store navigation status
panelsList pList(panels, nodes, 1); //a list of panels and nodes
idx_t eSpiTops[MAX_DEPTH]={0};
Expand Down
2 changes: 1 addition & 1 deletion examples/clickEncoder/clickEncoder/clickEncoder.ino
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ MENU(mainMenu,"Main menu",doNothing,noEvent,wrapStyle

#define MAX_DEPTH 2

/*constMEM panel panels[] MEMMODE={{0,0,16,2}};
/*const panel panels[] MEMMODE={{0,0,16,2}};
navNode* nodes[sizeof(panels)/sizeof(panel)];
panelsList pList(panels,nodes,1);
idx_t tops[MAX_DEPTH];
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=ArduinoMenu library
version=4.21.0
version=4.21.1
author=Rui Azevedo, ruihfazevedo@gmail.com
maintainer=neu-rah, ruihfazevedo@gmail.com
sentence=Generic menu/interactivity system
Expand Down

0 comments on commit 46e193f

Please sign in to comment.