Arduino Forum
How to avoid code duplication in a function?
Using Arduino
Programming Questions
nickgammon
December 30, 2012, 10:30am
19
Classes, like dc42 suggests, are another way. Slightly different but related.
show post in topic
Related Topics
Topic
Replies
Views
Activity
Cleaning up code, everything in functions, drawbacks?
Programming Questions
12
1275
May 5, 2021
switch confusion
Programming Questions
9
1099
May 5, 2021
Using if statements to switch between code
Programming Questions
5
1049
May 5, 2021
Global Variables
Programming Questions
4
1099
May 5, 2021
Where to put variables
Programming Questions
17
5293
May 5, 2021