mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 12:10:13 +01:00
drivers: Add "from micropython import const" when const is used.
Following best-practice use of the const feature, to make it compatible with Python.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user