Why does this say TypeError: ‘int’ object is not iterable?
import time
from envirophat import light
import scrollphathd
try:
while True:
lux = light.light()
print light.light()
scrollphathd.clear()
scrollphathd.write_string(
lux,
brightness=0.1
)
#! Show the buffer
scrollphathd.show()
#! Scroll the buffer content
scrollphathd.scroll()
# Sleep
time.sleep(0.1)
except KeyboardInterrupt:
pass
Thank you.