AdmiralCrunch
Well-known member
Hi
I do initialize some classes and a button called "btShift":
now I need to access a variable from cfg in a function of ctrlMain.
also I need to access btnShift in a function of ctrlMain.
Is this possible? If so, how would I do that?
I do initialize some classes and a button called "btShift":
Code:
#include <Arduino.h>
#include <cfg.h>
cfg cfg;
#include <Bounce.h>
Bounce btnShift = Bounce(cfg.btnShiftPin, 10); // 10 ms debounce
#include <ctrlMain.h>
ctrlMain ctrlMain;
now I need to access a variable from cfg in a function of ctrlMain.
also I need to access btnShift in a function of ctrlMain.
Is this possible? If so, how would I do that?