We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e1a961 commit 6394511Copy full SHA for 6394511
adafruit_dymoscale.py
@@ -19,11 +19,6 @@
19
* Adafruit CircuitPython firmware for the supported boards:
20
https://github.com/adafruit/circuitpython/releases
21
"""
22
-try:
23
- import typing
24
- import microcontroller
25
-except ImportError:
26
- pass
27
28
import time
29
from pulseio import PulseIn
@@ -50,8 +45,8 @@ class DYMOScale:
50
45
51
46
def __init__(
52
47
self,
53
- data_pin: microcontroller.pin,
54
- units_pin: microcontroller.pin,
48
+ data_pin: int,
49
+ units_pin: int,
55
timeout: float = 1.0,
56
) -> None:
57
"""Sets up a DYMO postal scale.
0 commit comments