Ive managed to dig out my breadboard and so over the weekend I'll hopefully be beginning to start working on getting this fella working!
Nothing fancy at first; basic functonality, all written using the Arduino IDE. This log is just to outline roughly an order for myself to approach this.
First up, the pro micro:
- Add code for button capture (lift from another arduino project I have going)
- Add code for lcd display (borrowed from my Aquariumatic project, which also uses i2c displays)
- Add code for menu creation (lift from the other project mentioned previously. Use an array to contain the menu options, and a secondary array containing the commands/function names to be executed on selection. Later in the build I can revisit this code and have the arrays populated from a menus file on an sd card. This in turn opens the door to allowing users to add menus and functions via the esp8266 Web interface later)
- Add code for keyboard emulation (to be used for sending keyboard commands and also for using the device as a game controller)
- Add i2c master code ready for use later.
- for the time being have the nano coded to recleve i2c commands from the Pro Micro.
- Also writer basic function to toggle pins on/off via i2c command.
- More work on this will take place once the breakouts board is created.
- add some simple webserving code
- Add i2c/software serial code for created comms with the pro micro
- Add code to support sd card shield
- Work on the html for the Web interface
For the second version (the one using the nextion screen ) I'm planning a slightly different approach. With the Nextion screen handling all the menus I can hopefully have the esp8266 as the main controller (using serial to communicate with the screen and its one analog pin for button reading)
The pro micro can then be repurchased as the slave (doing all the shit the nano will do in this build, but retaining the keyboard functions) and removing the nano from the equation.
Lots to be testing and getting on with! :-)