From the course: Arduino: Prototyping

Unlock the full course today

Join today to access over 24,400 courses taught by industry experts.

Use symbolic parameters

Use symbolic parameters - Arduino Tutorial

From the course: Arduino: Prototyping

Use symbolic parameters

- [Presenter] With a prototype, you often want to explore multiple designs for things like screen layout, animation frame rate, colors, and so on. One way to do this is to create different versions of the firmware for each design. It's important to save versions as you progress, but one drawback to this approach is that it can be easy to have lots of versions around without remembering which version is which. Another approach is to create settings for everything you want to explore, and make the settings easy to change. Then, to use a specific version, you just adjust the settings and upload the sketch to your prototype. To create a setting, first identify something that you or a designer might want to change. Let's say that in our prototype, you want to be able to change the character used for the laser in the display. Next, turn the value into a variable by giving it a name, for example, "laser symbol" might be a good…

Contents