There is a module "i2c_lcd" and python.
At the beginning of the script, I assign the variable "a" to 1 (am I doing the assignment correctly?)
Next, I try to display the value of the variable on the display.
I wrote a script like this:
Apparently, I'm doing something wrong, because after running this script, nothing is displayed.
Code: Select all
#!/usr/bin/env python # -*- coding: utf-8 -*- a = 1 import lcddriver lcd = lcddriver.lcd() lcd.lcd_clear() lcd.lcd_display_string(a, 1)
Writes an error: TypeError: 'int' object is not iterable
Please help me figure out what the problem is.