Skip to content

Commit 0b4a257

Browse files
committed
change pin datatypes to microcontroller.pin
1 parent 6394511 commit 0b4a257

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

adafruit_dymoscale.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"""
2222

2323
import time
24+
import microcontroller
2425
from pulseio import PulseIn
2526
from micropython import const
2627

@@ -45,8 +46,8 @@ class DYMOScale:
4546

4647
def __init__(
4748
self,
48-
data_pin: int,
49-
units_pin: int,
49+
data_pin: microcontroller.pin,
50+
units_pin: microcontroller.pin,
5051
timeout: float = 1.0,
5152
) -> None:
5253
"""Sets up a DYMO postal scale.

0 commit comments

Comments
 (0)