-
- Downloads
drivers/onewire: Move onewire.py, ds18x20.py from esp8266 to drivers.
These drivers can now be used by any port (so long as that port has the _onewire driver from extmod/modonewire.c). These drivers replace the existing 1-wire and DS18X20 drivers in the drivers/onewire directory. The existing ones were pyboard-specific and not very efficient nor minimal (although the 1-wire driver was written in pure Python it only worked at large enough CPU frequency). This commit brings backwards incompatible API changes to the existing 1-wire drivers. User code should be converted to use the new drivers, or check out the old version of the code and keep a local copy (it should continue to work unchanged).
Showing
- drivers/onewire/ds18x20.py 49 additions, 99 deletionsdrivers/onewire/ds18x20.py
- drivers/onewire/onewire.py 72 additions, 317 deletionsdrivers/onewire/onewire.py
- esp8266/modules/ds18x20.py 0 additions, 51 deletionsesp8266/modules/ds18x20.py
- esp8266/modules/onewire.py 0 additions, 91 deletionsesp8266/modules/onewire.py
Loading
Please register or sign in to comment