-
Source Code etc.
11/14/2023 at 06:15 • 0 commentsCode and STL files included... see project link...
-
Notes on Menu (macro) files...
09/14/2023 at 15:53 • 0 commentsNotes on Menu (macro) files...
- Menus must be named in sequence from menu1 to menu99...
- Menus can not contain empty lines...
- Menus can not have more than 15 lines...
- Menus can not contain comments...
In theory you should be able to add comments/text after the last line (assuming all 15 lines are present).
In testing I have based everything on 5 menus, this allows me to load the last menu from the first menu round-robin... Set the variable for the last menu (MAXMENUS,) to whatever yours is. If you have three menus then set this to 3, that way you can safely load the last menu from the first menu in a round-robin fashion. 1,2,3,4,5,1,2,3 etc... 5,4,3,2,1,5,4 etc...
-
menu5 (sample menu for MpxPLay)
09/14/2023 at 15:23 • 0 comments[<] [S+] [S-] [P] [B-] [B+] [>] [T-] [T+] [MU] [x] [y] [CF] [z] [HOME]
-
Case for Project (Macro Keypad / Stream Deck)
09/14/2023 at 14:41 • 0 commentsA case for the project can be found over at thingiverse ...
-
Stack issue fixed!
09/12/2023 at 12:23 • 0 commentsStack issue (reboot after x processes), fixed... Thanks to MicroController over at ESP32 Forums.
My issue was (infinite recursion)... rewrote the code... Hope I didn't speak too soon ;) but it's looking good.
-
Code Cleanup
09/08/2023 at 11:20 • 0 commentsCode has been reworked...
First we load the current Menu image (we always start with menu1), we then read the 15 lines (macros) from the associated Menu File... We wait for the user to press a key and process the Macro text associated line... that's all there to it...
You can designate one of the menu button to load the next menu, another to load the previous and perhaps another to go to home menu. To navigate through all the menus we only need two buttons and one home button for convenience, this still leaves st least 12 buttons on each menu...In the example code I use Menu5 to control an old DOS player (MpxPlay) but it could be any media device. The Menu has the normal media icons play, next, previous as well as Volume, Bass, Treble, Surround Sound Up/Down, plus many other options...
Making a Menu image is very simple and quick. Simply load the image with the red squares, then import icons for you program/actions and save the image to the SD card. Then make a macro file using a text editor containing the actions you want for the associated image, save file to SD card and plug in the TFT board... Power up the card and that's it...
-
Stack Issue
09/08/2023 at 11:05 • 1 commentLooking for help with Stack issue...
To begin I best point out the project was built using sample code. Somewhere in this code or my implementation of it, the stack reduces on each key processed and eventually the board resets. I added code to report the stack size after each process and it is being reduced and eventually reboots, ( something is being pushed to the stack but not popped)...
It's not major (if you don't mind the board resetting every so often), but it has to be fixed... any help appreciated...
The touch detection should probably be an interrupt (instead of inside a loop), this may account for stack issue...