Repository navigation
USB displays and LVGL #746
Unanswered
SteveSpencer
asked this question in
Q&A
Replies: 1 comment 5 replies
|
You have to use multiple inheritance for this device: In the header file: In the implementation file: Your code in I'm not sure, if this device should become a part of Circle, because it is discontinued and I never heard about it. What do you think, how many device of that kind are out there? If it is well-known, we should add it, if it is seldom, we should not. I'm about to add an |
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I have written the first draft of the drivers for a RoboPeak RPUSBDISP device, see here for details on the hardware. This has a USB interface with a couple of endpoints, one to read the touchscreen and status, and the second to send display commands.
As it is USB, there is one device, which in my case is based on CUSBDevice and CDisplay. There are different firmware variations, some of which support faster updates by using RLE to reduce the amount of data sent to the display; I am still implementing this bit, but the slower version with no encoding works.
The driver will register "touch1", in the same way that USB touchscreens do, via a CTouchScreenDevice created by the driver. I also need to register "rpusbdisp" so that I can get to the driver object to access the CDisplay interface. This is working.
However, I then hit a problem, because I wanted to test it with LVGL (my target app will use LVGL). If I follow the sample LVGL app, I would declare the LVGL object in CKernel, and in the CKernel constructor, construct the LVGL passing in a pointer to either a screen device, or a display device. HOWEVER, at that stage, I do not have a display device available.
My thought was to have code in CKernel::Run as follows:
and then continue as normal. The alternative would be to use 'new CLVGL' so that the CLVGL object wasn't on the stack.
The only other option that would work would be to modify the CLVGL class so that there is a second version of Initialize to set the display, or a separate method that sets it.
Two questions:
All reactions