Go to advanced search

by pi_noob
Fri Jan 23, 2015 1:03 am
Forum: Beginners
Topic: [SOLVED]Garbled Text on LCD only when running Pyton script.
Replies: 16
Views: 2957

Re: [SOLVED]Garbled Text on LCD only when running Pyton scri

Sorry for the delay. The reason for my garbled text, as strange as this sounds, was some faulty coding. I used the os.system commands, for example:

Code: Select all

 if ( GPIO.input(PIN_SW3_PAUSE) == True):
          os.system("mpc pause")
by pi_noob
Sat Jan 17, 2015 2:20 am
Forum: Beginners
Topic: [SOLVED]Garbled Text on LCD only when running Pyton script.
Replies: 16
Views: 2957

Re: Garbled Text on LCD only when running certain Python scr

After endless programming, I resolved this by modifying certain functions. You may close out this post.
by pi_noob
Tue Jan 13, 2015 11:46 pm
Forum: Beginners
Topic: [SOLVED]Garbled Text on LCD only when running Pyton script.
Replies: 16
Views: 2957

Re: Garbled Text on LCD only when running certain Python scr

I've tried adjusting the self.delayMicroseconds(1)" on both for the pulseEnable function..no dice. Any other suggestions? I've added functions in the script. Here is the added code if anyone wants to try it out and get back to me, please. # ---------------------------- # RADIO SETUP MENU # ---------...
by pi_noob
Tue Jan 13, 2015 10:20 pm
Forum: Beginners
Topic: [SOLVED]Garbled Text on LCD only when running Pyton script.
Replies: 16
Views: 2957

Re: Garbled Text on LCD only when running certain Python scr

I have even tried using the mpc current command.
by pi_noob
Tue Jan 13, 2015 10:13 pm
Forum: Beginners
Topic: [SOLVED]Garbled Text on LCD only when running Pyton script.
Replies: 16
Views: 2957

Re: Garbled Text on LCD only when running certain Python scr

Thanks, Pangolin and Dougie for the tip. The original code has bee placed into the proper tags. Obvious newb on forum. Ame, the output of the tail command would ouput the last 25 bytes of the current artist/song on the radio station. However, sometimes it doesn't display the artist and song title as...
by pi_noob
Tue Jan 13, 2015 6:26 pm
Forum: Beginners
Topic: [SOLVED]Garbled Text on LCD only when running Pyton script.
Replies: 16
Views: 2957

Re: Garbled Text on LCD only when running certain Python scr

Do you mean enter this code like below (without brackets) to clear lcd?

[lcd.clear()
elif(item == 4):
#Check artist/title info
output = run_cmd("mpc current | tail -c25") ]
by pi_noob
Tue Jan 13, 2015 3:07 pm
Forum: Beginners
Topic: [SOLVED]Garbled Text on LCD only when running Pyton script.
Replies: 16
Views: 2957

Re: Garbled Text on LCD only when running certain Python scr

Thanks, FTrevorGowen for the hardware information! I believe I have an 8-bit parrallel lcd. PangolinPaws - I know it is strange. I do have another python script which calls the Adafruit LCD dependency for my lcd. However, if I remove this code from the else, else if statements: elif(item == 4): # Ch...
by pi_noob
Tue Jan 13, 2015 4:38 am
Forum: Beginners
Topic: [SOLVED]Garbled Text on LCD only when running Pyton script.
Replies: 16
Views: 2957

[SOLVED]Garbled Text on LCD only when running Pyton script.

Hello, I'm running into a strange issue where when I add an additional function or elseif (elif), upon running the python script, and scrolling through the menu, it garbles the 20X4 lcd (no rgb). However, I have another python script that works perfectly. Scratching my head against this one. I have ...

Go to advanced search