2018-07-25, 10:16 AM
Hi,
Does the LCD Nokia 5110 also work on openpilot?
Regards
Hans
Does the LCD Nokia 5110 also work on openpilot?
Regards
Hans
LCD Nokia 5110
|
2018-07-25, 10:16 AM
Hi,
Does the LCD Nokia 5110 also work on openpilot? Regards Hans
2018-07-25, 12:36 PM
do you mean openplotter? In that case, yes it can work, but by default the client isn't running.
2018-07-31, 12:12 PM
What command do I have to use to start it? And are the buttons also enabled in that case?
regards Hans
2018-07-31, 12:50 PM
The lcd code is in pypilot/lcd. You can run it like "pypilot_lcdclient nokia5110" and the buttons (gpio) should be enabled. See the source code in pypilot/lcd/client.py for button pins.
For an IR remote to work, you need to have lircd running with your remote calibrated.
2018-08-01, 06:43 PM
I think a file is missing:
lcdclient.conf pi@openplotter:~ $ pypilot_lcdclient nokia5110 have gpio for raspberry pi no lirc available init... using nokia5110 loading load config file: /home/pi/.pypilot/lcdclient.conf failed to load config file: /home/pi/.pypilot/lcdclient.conf Traceback (most recent call last): File "/usr/local/bin/pypilot_lcdclient", line 11, in <module> load_entry_point('pypilot==0.1', 'console_scripts', 'pypilot_lcdclient')() File "/usr/local/lib/python2.7/dist-packages/pypilot-0.1-py2.7-linux-armv7l.egg/lcd/client.py", line 1224, in main glutKeyboardFunc(lcdclient.glutkeydown) File "/usr/lib/python2.7/dist-packages/OpenGL/GLUT/special.py", line 147, in __call__ contextdata.setValue( self.CONTEXT_DATA_KEY, cCallback ) File "/usr/lib/python2.7/dist-packages/OpenGL/contextdata.py", line 58, in setValue context = getContext( context ) File "/usr/lib/python2.7/dist-packages/OpenGL/contextdata.py", line 41, in getContext """Attempt to retrieve context when no valid context""" OpenGL.error.Error: Attempt to retrieve context when no valid context
2018-08-02, 08:19 PM
the config file isn't critical. It shouldn't be using opengl to run it on the lcd over spi. Can you run the command using "sudo" ?
2018-08-03, 06:12 AM
sudo gives the same result:
pi@openplotter:~/temppy/pypilot $ sudo pypilot_lcdclient nokia5110 importing glut have gpio for raspberry pi no lirc available init... using nokia5110 loading load config file: /root/.pypilot/lcdclient.conf failed to load config file: /root/.pypilot/lcdclient.conf Debug 7 Traceback (most recent call last): File "/usr/local/bin/pypilot_lcdclient", line 11, in <module> load_entry_point('pypilot==0.2', 'console_scripts', 'pypilot_lcdclient')() File "/usr/local/lib/python2.7/dist-packages/pypilot-0.2-py2.7-linux-armv7l.egg/lcd/client.py", line 1225, in main glutKeyboardFunc(lcdclient.glutkeydown) File "/usr/lib/python2.7/dist-packages/OpenGL/GLUT/special.py", line 147, in __call__ contextdata.setValue( self.CONTEXT_DATA_KEY, cCallback ) File "/usr/lib/python2.7/dist-packages/OpenGL/contextdata.py", line 58, in setValue context = getContext( context ) File "/usr/lib/python2.7/dist-packages/OpenGL/contextdata.py", line 41, in getContext """Attempt to retrieve context when no valid context""" OpenGL.error.Error: Attempt to retrieve context when no valid context
2018-09-21, 03:01 PM
(2018-08-03, 06:12 AM)It Paradyske Wrote: sudo gives the same result: I also see the same situation. So I need to repeat the question: how to start the LCD display Nokia5110 with openplotter/pypilot? I made wiring as here. Test program is working correctly, but openplotter doesn't start the display. Please help.
2018-09-21, 04:30 PM
(This post was last modified: 2018-09-21, 04:36 PM by seandepagnier.)
try commenting line 1225 in client.py and any more lines in client.py that throw exceptions.
Not sure why this is triggered for you but it works for me. I also use a different wiring from the link you posted. Check pypilot/lcd/ugfx/ugfx.cpp line 568. You can change these and recompile, but keep in mind I use the other io for button presses, so you would have to modify client.py as well to remap them. It would be easiest to just use DC on 25, and RST on 24. The rest of the connections are the same. I think you only need to change DC to pin 25
2018-09-21, 05:48 PM
(2018-09-21, 04:30 PM)seandepagnier Wrote: try commenting line 1225 in client.py and any more lines in client.py that throw exceptions. and where I can to find this file? I can't to find it. |
« Next Oldest | Next Newest »
|