Using global variables/definitions from .ino in another custom class
so in main .ino file (titled 'abs3'), create 4 global definitions:
#define process_v 0
#define button_v 1
#define process_s 2
#define button_s 3
i use these global 4-element boolean array (also defined in 'abs3').
i pass array function (void pressed(boolean act[])) that's part of custom class called 'lcd_control', not want have redefine 4 globals top in header file 'lcd_control'.
how give lcd_control class access 4 globals can use them in 'pressed(..)' function?
thanks
#define process_v 0
#define button_v 1
#define process_s 2
#define button_s 3
i use these global 4-element boolean array (also defined in 'abs3').
i pass array function (void pressed(boolean act[])) that's part of custom class called 'lcd_control', not want have redefine 4 globals top in header file 'lcd_control'.
how give lcd_control class access 4 globals can use them in 'pressed(..)' function?
thanks
how give lcd_control class access 4 globals can use them in 'pressed(..)' function?are these constants?
why trying preprocessor, why not pass 4 numbers in class's constructor?
Arduino Forum > Using Arduino > Programming Questions > Using global variables/definitions from .ino in another custom class
arduino
Comments
Post a Comment