Skip to content

Commit

Permalink
DM: fix pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
deanm1278 committed Nov 14, 2018
1 parent 295f2f0 commit c92c22f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/soil_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,19 @@

from board import SCL, SDA
import busio
from micropython import const

from adafruit_seesaw.seesaw import Seesaw

i2c_bus = busio.I2C(SCL, SDA)

ss = Seesaw(i2c_bus, addr=0x36)

while(1):
while True:
# read moisture level through capacitive touch pad
touch = ss.moisture_read()

# read temperature from the temperature sensor
temp = ss.get_temp()

print("temp: " + str(temp) + " moisture: " + str(touch))
time.sleep(1)
time.sleep(1)

0 comments on commit c92c22f

Please sign in to comment.