arduino-libraries / Arduino_MKRIoTCarrier

Use the features included with the Arduino MKR IoT Carrier
https://store.arduino.cc/mkr-iot-carrier
GNU Lesser General Public License v2.1
17 stars 12 forks source link

Fixed Relays #35

Closed ubidefeo closed 3 years ago

ubidefeo commented 3 years ago

I have had reports from a user in a FB group about the Relay_blink example not working and I verified it didn't. I ended up adding a begin() method to the MRKIOTCarrier_Relay Class to set the pinMode(). The MKRIoTCarrier::begin() method now invokes these for Relay_1 and Relay_2. Also set the _pin private member in the initializer list to make it const int.

Tested and working, but please run your tests

marqdevx commented 3 years ago

LGTM