Arduino runtime configAuthor: Dave Date: 02.28.15 - 10:28am let's say you have an Arduino sketch you want to distribute without hard coding in certain variables that are user configurable. You want to have the user just upload a sketch without needing to edit it, and you have some type of persistent storage such as an SD card or EEprom memory. So how do you let user configure the sketchat runtime? below is some example code that will start you in the right direction. When the Arduino is first started it will go into a wait loop looking for serial input. If found it will enter a configuration screen allowing the user to set variables. These can then be saved. you can also find an example of how to use a vb6 GUI app to configure and Arduino at runtime in my Rotary table Project. int debug = 0; Comments: (0) |
About Me More Blogs Main Site |