Help on using TextLCD with qp
Topic last updated
25 Apr 2012, by
Axel Kohonen.
2 replies
LCD,
qp
Hi!
I just installed the qp framework to my embed using the dining philosophers example http://mbed.org/users/QL/programs/qp_dpp/ly37cg
Previously I installed the TextLCD library http://mbed.org/users/simon/libraries/TextLCD/livod0 and modified it slightly to allow for 16x4 displays.
I got the TextLCD library to work previously and to show text on my LCD display, but after installing the qp framework I cannot figure out how to make it work. If I put any of the lcd (LCD defined to this name) commands, e.g. lcd.cls(), the QP software just stop running just after start. I call the lcd from a function in the bsp.cpp, which in turn is called from the philo.cpp initial state. The calling from the initial state to the bsp.cpp works if I do not use lcd functions in the bsp.cpp code.
I tried to find any examples on how to use a LCD through a library such as the TextLCD, but did not find any.
Any ideas on how to call the lcd functions when using the qp framework?
Thanks in advance!
- Axel
Replies
I found out myself that the problem with the TextLCD library is the wait commands. Without these the qp program works fine. The only problem is that the LCD does not work if the waits are omitted.
My question is therefore refined: How to implement something similar to wait with qp? Does one have to call some event, use a timer, etc.?
- Axel
Hi!
I just installed the qp framework to my embed using the dining philosophers example http://mbed.org/users/QL/programs/qp_dpp/ly37cg
Previously I installed the TextLCD library http://mbed.org/users/simon/libraries/TextLCD/livod0 and modified it slightly to allow for 16x4 displays.
I got the TextLCD library to work previously and to show text on my LCD display, but after installing the qp framework I cannot figure out how to make it work. If I put any of the lcd (LCD defined to this name) commands, e.g. lcd.cls(), the QP software just stop running just after start. I call the lcd from a function in the bsp.cpp, which in turn is called from the philo.cpp initial state. The calling from the initial state to the bsp.cpp works if I do not use lcd functions in the bsp.cpp code.
I tried to find any examples on how to use a LCD through a library such as the TextLCD, but did not find any.
Any ideas on how to call the lcd functions when using the qp framework?
Thanks in advance!
- Axel
Please log in to post a reply.
Hi!
I just installed the qp framework to my embed using the dining philosophers example http://mbed.org/users/QL/programs/qp_dpp/ly37cg
Previously I installed the TextLCD library http://mbed.org/users/simon/libraries/TextLCD/livod0 and modified it slightly to allow for 16x4 displays.
I got the TextLCD library to work previously and to show text on my LCD display, but after installing the qp framework I cannot figure out how to make it work. If I put any of the lcd (LCD defined to this name) commands, e.g. lcd.cls(), the QP software just stop running just after start. I call the lcd from a function in the bsp.cpp, which in turn is called from the philo.cpp initial state. The calling from the initial state to the bsp.cpp works if I do not use lcd functions in the bsp.cpp code.
I tried to find any examples on how to use a LCD through a library such as the TextLCD, but did not find any.
Any ideas on how to call the lcd functions when using the qp framework?
Thanks in advance!
- Axel