File tree Expand file tree Collapse file tree 2 files changed +10
-11
lines changed Expand file tree Collapse file tree 2 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 2
2
# SPDX-License-Identifier: MIT
3
3
4
4
# Simple demo for timer operation using the timer-flag
5
+
6
+ import time
5
7
import board
8
+ import busio
9
+ from adafruit_pcf8523 .timer import Timer
10
+ from adafruit_pcf8523 .clock import Clock
6
11
7
12
LOW_FREQ_TIMER = 10
8
13
HIGH_FREQ_TIMER = 0.02
11
16
PIN_SCL = board .GP3
12
17
# use board.SCL and board.SDA if available
13
18
14
- import time
15
- import busio
16
- from adafruit_pcf8523 .timer import Timer
17
- from adafruit_pcf8523 .clock import Clock
18
-
19
19
i2c = busio .I2C (PIN_SCL , PIN_SDA )
20
20
# or i2c = board.I2C() if available
21
21
timer = Timer (i2c )
Original file line number Diff line number Diff line change 2
2
# SPDX-License-Identifier: MIT
3
3
4
4
# Simple demo for timer operation, using the interrupt-pin
5
+
6
+ import time
5
7
import board
8
+ import busio
9
+ from adafruit_pcf8523 .timer import Timer
10
+ from adafruit_pcf8523 .clock import Clock
6
11
7
12
LOW_FREQ_TIMER = 10
8
13
HIGH_FREQ_TIMER = 0.02
12
17
PIN_SCL = board .GP3
13
18
# use board.SCL and board.SDA if available
14
19
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
-
21
20
i2c = busio .I2C (PIN_SCL , PIN_SDA )
22
21
# or i2c = board.I2C() if available
23
22
timer = Timer (i2c )
You can’t perform that action at this time.
0 commit comments