Skip to content

Commit e7a46c6

Browse files
authored
Update code.py
fix travis nits
1 parent 708c4ca commit e7a46c6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Compost_Friend/code.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
# Code adapted from Tony Dicola's CircuitPython code using the DS18x20 temp sensor
33
# as well as John Park's CircuitPython code determining soil moisture from nails
44

5+
import time
56
from adafruit_onewire.bus import OneWireBus
67
from adafruit_ds18x20 import DS18X20
7-
import time
88
import board
9-
import simpleio
109
import touchio
1110
import neopixel
1211
import analogio
@@ -32,7 +31,7 @@
3231
# Initialize the light senor on board to use for neopixel brightness later
3332
light = analogio.AnalogIn(board.LIGHT)
3433

35-
# Main loop
34+
# Main loop
3635
while True:
3736

3837
# SOIL MOISTURE READINGS
@@ -99,7 +98,7 @@
9998
print("Not hot enough, right moisture level")
10099

101100
# ALL GREEN = COMPOST AT OPTIMUM TEMPERATURE & MOISTURE
102-
elif(compostTemp>tempThreshhold):
101+
elif compostTemp > tempThreshhold:
103102
pixels.fill((0,255,0)) # green
104103
print("Compost Ready")
105104

0 commit comments

Comments
 (0)