summaryrefslogtreecommitdiff
path: root/esp8266/modules/ds18x20.py
AgeCommit message (Collapse)Author
2016-11-03drivers: Add "from micropython import const" when const is used.Damien George
Following best-practice use of the const feature, to make it compatible with Python.
2016-11-02esp8266/modules: Fix negative temperature in ds18x20 driver.ernitron
2016-08-29esp8266/modules/ds18x20.py: Add support for DS18S20 devices.Damien George
2016-08-29esp8266/modules/onewire: Change onewire.read() to onewire.readinto().Damien George
This allows 1-wire drivers (eg DS18X20) to perform in-place operations and hence do less memory allocations.
2016-08-29esp8266/modules: Split onewire.py into OneWire and DS18X20 driver.Damien George
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.