Your thoughts on programming practices for the Arduino
as have said before, arduino new me. i've been messing month now. prior this, i've ever done website based programming (html, javascript, php, etc).
so far, complex (for me) sketch working on works. have question methods if best/proper way things. in project, have several sensors, motors, lcd, clock , leds need turned on/off/monitored/checked either continuously or @ specific times. oh hell, point.
the way have written follows format
as can see, method, although works, not way most, if @ all, program arduino. so, advice give "noob" far flow of programming arduino?
so far, complex (for me) sketch working on works. have question methods if best/proper way things. in project, have several sensors, motors, lcd, clock , leds need turned on/off/monitored/checked either continuously or @ specific times. oh hell, point.
the way have written follows format
code: [select]
//includes
//defines
//const ints
//other ints
//setup()
//loop(){
//everything checked/called using functions
//yes, everything
//i have 10+/- now
}
//function 1
//function 2
//etc
as can see, method, although works, not way most, if @ all, program arduino. so, advice give "noob" far flow of programming arduino?
as can see, method, although works, not way most, if @ all, program arduino. so, advice give "noob" far flow of programming arduino?i don't see particularly wrong approach... well, can't see wrong @ all: lib including first, defining stuff need, global vars follow, setup , loop method. usual general scheme there. have coding experience, guess know dividi et impera paradigm, , function n let me think you're adopting it.
if project you're working on quite large, maybe consider use dividi et impera paradigm project modularizing (not using single .ino file).
eventually, general rule, use char arrays instead of string objects (ref).
Arduino Forum > Using Arduino > Programming Questions > Your thoughts on programming practices for the Arduino
arduino
Comments
Post a Comment