How do you print a variable on the RGB LCD screen? Tried a few things and this simple code python code fails.
import modules
import time
import sys
from grovepi import *
from thread import *
#LCD module imports
from grove_rgb_lcd import *
import RPi.GPIO as GPIO
import smbus
#define variables
Counter=10
#Operation
setRGB(255,0,0) #sets text screen to red
#Countdown display
while Counter > 0:
setText(Counter)
time.sleep (1)
Counter = Counter -1
else:
print “complete”
setRGB(0,0,0) #sets text screen off
Throws this error when run.
“TypeError: ‘int’ object is not iterable”
Is there an easy way of doing this? Had a look at the examples and have started to pull apart and substitute values and variables but it ends up with the same error.
Thanks in advance.