Skip to content

Commit c6ae50f

Browse files
committed
fixed import statements (pylint)
1 parent 28f15c9 commit c6ae50f

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

examples/pcf8523_timer_flag.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22
# SPDX-License-Identifier: MIT
33

44
# Simple demo for timer operation using the timer-flag
5+
6+
import time
57
import board
8+
import busio
9+
from adafruit_pcf8523.timer import Timer
10+
from adafruit_pcf8523.clock import Clock
611

712
LOW_FREQ_TIMER = 10
813
HIGH_FREQ_TIMER = 0.02
@@ -11,11 +16,6 @@
1116
PIN_SCL = board.GP3
1217
# use board.SCL and board.SDA if available
1318

14-
import time
15-
import busio
16-
from adafruit_pcf8523.timer import Timer
17-
from adafruit_pcf8523.clock import Clock
18-
1919
i2c = busio.I2C(PIN_SCL, PIN_SDA)
2020
# or i2c = board.I2C() if available
2121
timer = Timer(i2c)

examples/pcf8523_timer_interrupt.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22
# SPDX-License-Identifier: MIT
33

44
# Simple demo for timer operation, using the interrupt-pin
5+
6+
import time
57
import board
8+
import busio
9+
from adafruit_pcf8523.timer import Timer
10+
from adafruit_pcf8523.clock import Clock
611

712
LOW_FREQ_TIMER = 10
813
HIGH_FREQ_TIMER = 0.02
@@ -12,12 +17,6 @@
1217
PIN_SCL = board.GP3
1318
# use board.SCL and board.SDA if available
1419

15-
import time
16-
import busio
17-
from digitalio import DigitalInOut, Direction, Pull
18-
from adafruit_pcf8523.timer import Timer
19-
from adafruit_pcf8523.clock import Clock
20-
2120
i2c = busio.I2C(PIN_SCL, PIN_SDA)
2221
# or i2c = board.I2C() if available
2322
timer = Timer(i2c)

0 commit comments

Comments
 (0)