I'm reworking a project from last year to run a 4 channel RGBW controller on an ESP32 platform written in the " Arduino Programming Language". APL is very similar to C++ but lacks a main() function, instead having a global include/define area, a setup(void) function and a loop(void) function.
I had been creating my objects in the global include/define area which was working well. However, I now need to control their initiation in the setup(void) code, and of need references to them in my loop(void).
So my question is how does one create a global object reference that is defined and used elsewhere in the program?
I had been creating my objects in the global include/define area which was working well. However, I now need to control their initiation in the setup(void) code, and of need references to them in my loop(void).
So my question is how does one create a global object reference that is defined and used elsewhere in the program?