lcd160cr on pyboard original no works#resolved#
lcd160cr on pyboard original no works#resolved#
Hi,
No display with my original pybaord and lcd160...
My code:
####
import lcd160cr
lcd = lcd160cr.LCD160CR('X')
####
The lcd is connected on 'X' ports.
I will try the only one solution on the lcd160 of this forum with an other board, wich consist to defined the ports. So I have to check my numbers of ports, and I will post the results...
If somebody has the correspondence of the pin, or can help me, I will be more happy.
Thanks.
No display with my original pybaord and lcd160...
My code:
####
import lcd160cr
lcd = lcd160cr.LCD160CR('X')
####
The lcd is connected on 'X' ports.
I will try the only one solution on the lcd160 of this forum with an other board, wich consist to defined the ports. So I have to check my numbers of ports, and I will post the results...
If somebody has the correspondence of the pin, or can help me, I will be more happy.
Thanks.
Last edited by IHOXOHI on Tue Apr 28, 2020 2:55 pm, edited 1 time in total.
Re: lcd160cr on pyboard original no works
Do you see an error or does the display just not work? If it's an error, what is the error?
To actually see anything on the display you need to do something like:
Code: Select all
import lcd160cr
lcd = lcd160cr.LCD160CR('X')
import lcd160cr_test
lcd160cr_test.test_all(lcd)
Code: Select all
MicroPython v1.12.... on <date>; PYBv1.1 with STM32F405RG
Type "help()" for more information.
>>>
Re: lcd160cr on pyboard original no works
Hi Jimmo,
Thanks for your help.
The error is " OSERROR : [Errno 19] ENODEV
YES! You have right.
I have received others responses from the community and it's clear ; a problem of an update of the firmware...
When I use ctrl+d in repl session, I have :
"
Entering REPL. Use Control-X to exit.
>
MicroPython v1.10 on 2019-01-25; PYBv1.1 with STM32F405RG
Type "help()" for more information.
>>>
>>>
PYB: sync filesystems
PYB: soft reboot
To run all tests: test_all(<lcd>)
Individual tests are: test_features, test_mandel
<lcd> argument should be a connection, eg "X", or an LCD160CR object
MicroPython v1.10 on 2019-01-25; PYBv1.1 with STM32F405RG
Type "help()" for more information.
"
You talk about v1.12...
Maybe it will resolve other problems that I have had with ssd1306 display...
I will check how can I update my firmware, and post the result...
Thanks a lots to all the community.
Thanks for your help.
The error is " OSERROR : [Errno 19] ENODEV
YES! You have right.
I have received others responses from the community and it's clear ; a problem of an update of the firmware...
When I use ctrl+d in repl session, I have :
"
Entering REPL. Use Control-X to exit.
>
MicroPython v1.10 on 2019-01-25; PYBv1.1 with STM32F405RG
Type "help()" for more information.
>>>
>>>
PYB: sync filesystems
PYB: soft reboot
To run all tests: test_all(<lcd>)
Individual tests are: test_features, test_mandel
<lcd> argument should be a connection, eg "X", or an LCD160CR object
MicroPython v1.10 on 2019-01-25; PYBv1.1 with STM32F405RG
Type "help()" for more information.
"
You talk about v1.12...
Maybe it will resolve other problems that I have had with ssd1306 display...
I will check how can I update my firmware, and post the result...
Thanks a lots to all the community.
Re: lcd160cr on pyboard original no works
Yo,
I have update the firmware...
But it no works yet.
My commande:
"Entering REPL. Use Control-X to exit.
>
MicroPython v1.12 on 2019-12-20; PYBv1.1 with STM32F405RG
Type "help()" for more information.
>>>
>>> import lcd160cr
>>> lcd = lcd160cr.LCD160CR('X')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "lcd160cr.py", line 76, in __init__
File "lcd160cr.py", line 210, in set_orient
File "lcd160cr.py", line 95, in _fcmd2
File "lcd160cr.py", line 81, in _send
OSError: [Errno 19] ENODEV
>>>
MPY: sync filesystems
MPY: soft reboot
To run all tests: test_all(<lcd>)
Individual tests are: test_features, test_mandel
<lcd> argument should be a connection, eg "X", or an LCD160CR object
MicroPython v1.12 on 2019-12-20; PYBv1.1 with STM32F405RG
Type "help()" for more information.
"
Always the same error...
Thanks for your help.
I have update the firmware...
But it no works yet.
My commande:
"Entering REPL. Use Control-X to exit.
>
MicroPython v1.12 on 2019-12-20; PYBv1.1 with STM32F405RG
Type "help()" for more information.
>>>
>>> import lcd160cr
>>> lcd = lcd160cr.LCD160CR('X')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "lcd160cr.py", line 76, in __init__
File "lcd160cr.py", line 210, in set_orient
File "lcd160cr.py", line 95, in _fcmd2
File "lcd160cr.py", line 81, in _send
OSError: [Errno 19] ENODEV
>>>
MPY: sync filesystems
MPY: soft reboot
To run all tests: test_all(<lcd>)
Individual tests are: test_features, test_mandel
<lcd> argument should be a connection, eg "X", or an LCD160CR object
MicroPython v1.12 on 2019-12-20; PYBv1.1 with STM32F405RG
Type "help()" for more information.
"
Always the same error...
Thanks for your help.
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: lcd160cr on pyboard original no works
The display hardware isn't being detected. Have you connected it to the X skin? See http://micropython.org/resources/pybv10-pinout.jpg for the positions of the X and Y skins.
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.
Re: lcd160cr on pyboard original no works
Hi Pyth,
Yes for sure!
"
If X means X:
X is connected.
"
When I use a command* for known if the i2c connection is true ; I have true.
...
*from a member of the community
Thanks for your participation,
Enjoy.
Yes for sure!
"
If X means X:
X is connected.
"
When I use a command* for known if the i2c connection is true ; I have true.
...
*from a member of the community
Thanks for your participation,
Enjoy.
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: lcd160cr on pyboard original no works
I installed the same firmware as you, and fitted an LCD160CR in the X position. This was my REPL session:
The display worked as normal.
So I'm afraid I can only see two possibilities:
Code: Select all
MicroPython v1.12 on 2019-12-20; PYBv1.1 with STM32F405RG
Type "help()" for more information.
>>>
>>> import lcd160cr
>>> lcd = lcd160cr.LCD160CR('X')
>>> import lcd160cr_test
To run all tests: test_all(<lcd>)
Individual tests are: test_features, test_mandel
<lcd> argument should be a connection, eg "X", or an LCD160CR object
>>> lcd160cr_test.test_all(lcd)
So I'm afraid I can only see two possibilities:
- Incorrectly connected hardware.
- Defective hardware.
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.
Re: lcd160cr on pyboard original no works
Hi Peter,
Ok. Thanks for your response.
I have bought a pyboard-D with an other lcd160cr... So, I will wait to received it, and see if the problem comes from the pyboard or the LCD... For sure I will return one of them. I have bought the pyboard original and the lcd on Lextronic shop in France... the pyboard-d with the second lcd is coming directly from UK...
I will post my conclusions...
Thanks a lot to all the community.
Have the best.
See you soon.
Ok. Thanks for your response.
I have bought a pyboard-D with an other lcd160cr... So, I will wait to received it, and see if the problem comes from the pyboard or the LCD... For sure I will return one of them. I have bought the pyboard original and the lcd on Lextronic shop in France... the pyboard-d with the second lcd is coming directly from UK...
I will post my conclusions...
Thanks a lot to all the community.
Have the best.
See you soon.
Re: lcd160cr on pyboard original no works
Hi,
I have found... It comes from my usage of an other serial port with an other esp on my raspberry...
It seems that it create a conflict for the use of the display... I didn't known that we can't use 2 ports (ACM0 and ACM1) in the same time for displaying. For the rest it was working.
If I stop datalogging on the other ttyACM port, the lcd start correctly.
So goood!!!
Sorry for all these desagrements,
Maybe it's time for me to ask if it could be possible to run repl session with a pyboard-D alone, without a pc's supervision... I have the dream of a pyboard which can manage my email. For sure it implicate a keyboard manage, and I think that the biggest difficulties are to run the repl session in upython... Maybe it's completly impossible...
I will try.
Thanks a lots to all the community.
It was a pleasure to meet you.
All the best.
I have found... It comes from my usage of an other serial port with an other esp on my raspberry...
It seems that it create a conflict for the use of the display... I didn't known that we can't use 2 ports (ACM0 and ACM1) in the same time for displaying. For the rest it was working.
If I stop datalogging on the other ttyACM port, the lcd start correctly.
So goood!!!
Sorry for all these desagrements,
Maybe it's time for me to ask if it could be possible to run repl session with a pyboard-D alone, without a pc's supervision... I have the dream of a pyboard which can manage my email. For sure it implicate a keyboard manage, and I think that the biggest difficulties are to run the repl session in upython... Maybe it's completly impossible...
I will try.
Thanks a lots to all the community.
It was a pleasure to meet you.
All the best.