I am struggling with the scope visibility of Constants I will appreciate any hints or help.
On the ADS1118 ADC there is a complex setting /configuration possible and to make a component that supports all these configurations it is necessary to define them and allow the user of the component to select these various settings , ,
At the moment I have these settings as CONST in globals and then pass them into the macro call as shown below.
The question is there a more elegant way for example include them with in the macro and then when the macro is called the user can select them with the .XXX syntax.I tried but was not successful (maybe I miss something) .
Also if the CONST are in Global s will they get exported with the Component, when exported ?
Any ideas help hints appreciated
![Embarrassed :oops:](./images/smilies/icon_redface.gif)
![Embarrassed :oops:](./images/smilies/icon_redface.gif)