guillaumesej wrote:So, after upgrading RPi.GPIO to 0.6.2, I get a slightly different error:
Code: Select all
Traceback (most recent call last):
File "/usr/local/bin/16x2_oled_runeaudio.py", line 258, in <module>
main()
File "/usr/local/bin/16x2_oled_runeaudio.py", line 96, in main
lcd_string(ip_addr,LCD_LINE_2)
File "/usr/local/bin/16x2_oled_runeaudio.py", line 248, in lcd_string
message = message.center(LCD_WIDTH," ")
TypeError: must be a byte string of length 1, not str
You have modified the script (LCD_D7 = 15 to LCD_D7 = 27) right?
As LCD_WIDTH is the next variable in the source, i think something went wrong doing this.
Please download the script an other time and try it again.
Do not use the standard windows editor to modify the file.
Use nano on your Pi or Notepad+ on your windows pc.
Frank