Skip to content

Commit 7498290

Browse files
committed
fixed pylint
1 parent 1099c8c commit 7498290

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/mcp4728_vref_example.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1+
from time import sleep
12
import board
23
import busio
34
import adafruit_mcp4728
4-
from time import sleep
55

66
i2c = busio.I2C(board.SCL, board.SDA)
77
mcp4728 = adafruit_mcp4728.MCP4728(i2c)
88

99
FULL_VREF_RAW_VALUE = 4095
1010

11+
#pylint: disable=no-member
1112
mcp4728.channel_a.raw_value = int(FULL_VREF_RAW_VALUE/2) # VDD/2
1213
mcp4728.channel_a.vref = adafruit_mcp4728.Vref.VDD # sets the channel to scale between 0v and VDD
1314

@@ -22,4 +23,4 @@
2223
mcp4728.save_settings()
2324

2425
while True:
25-
sleep(1)
26+
sleep(1)

0 commit comments

Comments
 (0)