![]() ![]() ![]() So my question is, how should I elegantly allow the exclusion of the RTOS references in my library. If anybody else wanted to use the OneWire library even with I2C, they might not want the RTOS junk compiled in if they had a dedicated I2C port (or could just put everything on one thread). Having done that, I needed to include some RTOS stuff in the I2C part of the library, as I need mutex on a shared I2C port (because I have separate threads for temperature and other port expander devices). So I then did some object orientation on the OneWire library to allow the use of either a DigitalInOut or an I2C interface via the DS2482 1-wire/I2C bridge. ![]() I ported the Arduino OneWire and Dallas Temperature Control Library, then discovered a hard fact of life.ġ-wire using a digital IO pin suffers with longer cable lengths when you're also trying to get the mbed to do other things at the same time (because of timing tolerances). You'll have to scroll down a bit to find the right one. Open up the Arduino library manager Search for the OneWire library and install it. You can download the OneWire library from the Arduino library manager. Advice for OneWire library with I2C and RTOS Download and Install The DS2413 uses the Maxim/Dallas OneWire protocol. To start a new conversationĩ years, 6 months ago. Important changes to forums and questionsĪll forums and questions are now archived. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |