summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266/modules/ds18x20.py
Commit message (Collapse)AuthorAge
* ports: Make new ports/ sub-directory and move all ports there.Damien George2017-09-06
| | | | | | This is to keep the top-level directory clean, to make it clear what is core and what is a port, and to allow the repository to grow with new ports in a sustainable way.
* esp8266: Reinstate 1-wire scripts by sym-linking to drivers/onewire/.Damien George2017-06-22
| | | | No changes have been made to the code, the files just moved.
* drivers/onewire: Move onewire.py, ds18x20.py from esp8266 to drivers.Damien George2017-06-22
| | | | | | | | | | | | | | | 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).
* drivers: Add "from micropython import const" when const is used.Damien George2016-11-03
| | | | | Following best-practice use of the const feature, to make it compatible with Python.
* esp8266/modules: Fix negative temperature in ds18x20 driver.ernitron2016-11-02
|
* esp8266/modules/ds18x20.py: Add support for DS18S20 devices.Damien George2016-08-29
|
* esp8266/modules/onewire: Change onewire.read() to onewire.readinto().Damien George2016-08-29
| | | | | This allows 1-wire drivers (eg DS18X20) to perform in-place operations and hence do less memory allocations.
* esp8266/modules: Split onewire.py into OneWire and DS18X20 driver.Damien George2016-08-29
The OneWire class is now in its own onewire.py module, and the temperature sensor class is in its own ds18x20.py module. The latter is renamed to DS18X20 to reflect the fact that it will support both the "S" and "B" variants of the device. These files are moved to the modules/ subdirectory to take advantage of frozen bytecode.