Fix compiler errors when compiling for Arduino Nano 33 BLE platform #21
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
My fix for #20.
I renamed a couple of variables
D1
andD2
as they were causing a conflict with certain Arduino headers for the Nano 33 BLE. I also added a cast-to-integer in some of the calls toWire::write
, as the new mbed-based implementation ofWire.h
provides two candidates,write(uint8_t)
andwrite(char*)
.I tried my best to make sure this code doesn't break anything else. I tried compiling for a few different Arduino platforms, including: Arduino Uno, Arduino Nano, Arduino Nano 33 BLE, Arduino Nano Every, Arduino Portenta H7, and Arduino Nano 33 IOT, and the library compiled without any issues. I apologise for not knowing the proper procedure to test my code thoroughly, I am a student and very new to this.