Skip to content

Conversation

@tjpetz
Copy link
Contributor

@tjpetz tjpetz commented Sep 8, 2020

The Arduino Nano 33 BLE (and 33 BLE Sense) boards are based on mbed OS. Currently Arduino has not included the microsecondsToClockCycles() function in Arduino.h (or standard include files). There is some debate as to whether
or not the function belongs in the standard Arduino.h for this board. (See issue 101 here here).

This change adds the missing definition of microsecondsToClockCycles() to DHT.h only for the Nano 33 BLE Board only and only if it's not eventually included in the standard include.

There are no known limitations.

Testing has been verified on Arduino Uno, Arduino 33 IoT, and Arduino 33 BLE Sense boards with a DHT11 sensor.

@ladyada
Copy link
Member

ladyada commented Sep 8, 2020

hi can merge if/when it passes CI!

@ladyada
Copy link
Member

ladyada commented Sep 8, 2020

please run clang-format -i on the files to clang them

@ladyada ladyada merged commit 7062b12 into adafruit:master Sep 8, 2020
@ladyada
Copy link
Member

ladyada commented Sep 8, 2020

yay thanks!

@tjpetz
Copy link
Contributor Author

tjpetz commented Sep 8, 2020

Thanks, happy to help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants