i'm starting write larger sketches , finding out how important organization of code larger program becomes. i'm using arduino ide compsose code , started using tabs break code semi-managable chunks. when named tabs didn't give extention names (didn't know could). ide treat code if 1 big file. then learned little making them header files , "#include"ing them main sketch enables me isolate different sections of code , localize variables within them. useful! somewhere in learning section on arduino site i came accross - tabs, multiple files, , compilation: allows manage sketches more 1 file (each of appears in own tab). these can normal arduino code files (no extension), c files (.c extension), c++ files (.cpp), or header files (.h). my question is, difference/use of using .c or .cpp extentions in tabs of arduino ide. there benifit in doing that. know libraries have have both .h , .c files. better off learning how write libraries. which, way, li...
Comments
Post a Comment