Multiple-file project


hello, researched , didn't find helped me, here goes...

i'm working on project step-by-step. means have multiple files single, small tasks.
for instance, have file generates crc-8 of array. give random values array, click upload , shows me crc in serial monitor.
i have file humidity sensing sensor.
i have file temperature sensing sensor.
etc etc.
i because when need use 1 of these parts on project, don't have read huge file , filter variables , functions , loops , might want.


how can use them without making on huge file?


i guess convert files functions , have huge, confusing file functions , smaller, neater file uses them.
do have include<> or that?


they're .pde, of course.


thanks! :)

if multiple .pde files in 1 folder, 1 same name folder generates main() , init() functions. others contribute functions sketch being compiled/linked/uploaded.

so, can have individual .pde files individual functions. copy required .pde file sketch folder, , use functions in .pde file in main sketch.


Arduino Forum > Forum 2005-2010 (read only) > Software > Development > Multiple-file project


arduino

Comments