Closed alranel closed 2 years ago
I'd assign @marqdevx to this issue due to the fact he has effectively written the whole library.
I will try to find another way to make it more simple with the team, thanks.
I will contact with you soon @alranel
What difference does false or true make for CARRIER_CASE;
@carterwe true means that you have the Enclosure Case attached to the Carrier false means that you DONT have the Enclosure Case attached to the Carrier
So it calibrates the touch buttons to be, in both cases, functional
So it calibrates the touch buttons to be, in both cases, functional
Ah... this is what I was looking for! I hear you guys will have complete new project documentation soon (even mentioning how to use and connect the battery). Very good! I'm really looking forward to it. I am application programmer just trying to pick up all this board connecting, Arduino C++, and Arduino library stuff up. The better the documentation the way better for me. Thanks for your reply! :) Ed
On Fri, Dec 4, 2020 at 8:14 AM marqdevx notifications@github.com wrote:
@carterwe https://github.com/carterwe true means that you have the Enclosure Case attached to the Carrier false means that you DONT have the Enclosure Case attached to the Carrier
So it calibrates the touch buttons to be, in both cases, functional
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/arduino-libraries/Arduino_MKRIoTCarrier/issues/13#issuecomment-738838395, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDHASXDXSZJ4JO4KQG6ZU3STD4DXANCNFSM4SYKUJSA .
@carterwe Thanks!!
Please check the Reference page to read more :) https://www.arduino.cc/reference/en/libraries/arduino_mkriotcarrier/
@marqdevx This issue is still valid :)
As of now, this library must be configured by declaring a global variable after including the library:
The variable is declared as
extern
in this library:https://github.com/arduino-libraries/Arduino_MKRIoTCarrier/blob/788a4b026b55292fad8616b5354cc215b7be4d95/src/Arduino_MKRIoTCarrier.h#L80
If removed from the sketch, it will not compile.
This configuration pattern, however, might confuse users who (like me) see an unused variable and try to remove it. It's a bit obscure for basic users who don't know about
extern
symbols or the build process. Not really a big issue, but we should probably stick to a more explicit and Arduino-like pattern like:or even:
I wonder if there's a clever way to make this change in a retrocompatible fashion. :)