lorddc89
Posts: 7
Joined: Sun Dec 29, 2013 10:46 pm

HD44780 LCD

Tue Jun 17, 2014 9:46 am

Hi,

i have a 20x4 LCD, and the python script from Raspberry Pi Spy, i can get the original script to run and display its welcome message but when I import it into my own script and send some text to the lcd it keeps giving me the error RunTimeError: No access to /dev/mem. Try Running as Root: ..... i have ran the script from terminal using sudo python scriptname.py, same way as i did for the first script, but it wont run

original script from http://www.raspberrypi-spy.co.uk/2012/0 ... ng-python/

User avatar
davef21370
Posts: 897
Joined: Fri Sep 21, 2012 4:13 pm
Location: Earth But Not Grounded

Re: HD44780 LCD

Wed Jun 18, 2014 6:20 pm

You can get this error when you try outputting to a pin that isn't set as an output. Have you changed the original code? May be worth checking all your pins are set correctly.

Dave.
Apple say... Monkey do !!

lorddc89
Posts: 7
Joined: Sun Dec 29, 2013 10:46 pm

Re: HD44780 LCD

Wed Jun 18, 2014 7:16 pm

They were all setup but I have found a solution now, I was using bcm mode and started to write some code in board and endes up attempting to set the same pin up and call it, I corrected this and appears to be fine now, thanks for your reply

Return to “Python”