diff options
Diffstat (limited to 'esp8266/modules')
-rw-r--r-- | esp8266/modules/ds18x20.py | 2 | ||||
-rw-r--r-- | esp8266/modules/onewire.py | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/esp8266/modules/ds18x20.py b/esp8266/modules/ds18x20.py index fc53048f8e..bf06094835 100644 --- a/esp8266/modules/ds18x20.py +++ b/esp8266/modules/ds18x20.py @@ -1,6 +1,8 @@ # DS18x20 temperature sensor driver for MicroPython. # MIT license; Copyright (c) 2016 Damien P. George +from micropython import const + _CONVERT = const(0x44) _RD_SCRATCH = const(0xbe) _WR_SCRATCH = const(0x4e) diff --git a/esp8266/modules/onewire.py b/esp8266/modules/onewire.py index 06b216a57a..83318d1a47 100644 --- a/esp8266/modules/onewire.py +++ b/esp8266/modules/onewire.py @@ -1,6 +1,7 @@ # 1-Wire driver for MicroPython on ESP8266 # MIT license; Copyright (c) 2016 Damien P. George +from micropython import const import _onewire as _ow class OneWireError(Exception): |