Skip to content

Commit 2e39f53

Browse files
committed
adding unit miniscale
1 parent 145dc35 commit 2e39f53

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

m5stack/libs/unit/manifest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"limit.py",
3939
"op.py",
4040
"lora_e220_jp.py",
41+
"miniscale.py",
4142
"rfid.py",
4243
"weight.py",
4344
"scales.py",

m5stack/libs/unit/miniscale.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919
except ImportError:
2020
pass
2121

22-
class Miniscale:
22+
class MiniScale:
2323
"""! MiniScale is a weight sensor, includes a hx711 22bit ADC.
2424
2525
"""
26-
def __init__(self, i2c: Union[I2C, PAHUBUnit], addr=0x26):
26+
def __init__(self, i2c: Union[I2C, PAHUBUnit], addr=0x26):
2727
self.i2c = i2c
2828
self.addr = addr
2929
self._available()

0 commit comments

Comments
 (0)