Jump to content

Joel Bodenmann

Administrators
  • Posts

    2,639
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Joel Bodenmann

  1. Sure, let us know when you need any help. ~ Tectu
  2. No reason to be ashamed of yourself. We all do make mistakes I'll be more than happy to include the driver in the official repository once I find some time. ~ Tectu
  3. Hello and welcome to the community! Could you please point directly to the working code and the not working board file? When I understand you correctly you already have a working driver and just porting it to uGFX does not work? ~ Tectu
  4. After some more days of thinking I came to the conclusion that GREGISTRY might still be better than GCONF so we don't confuse new people with the configuration of the uGFX modules themself (gfxconf.h) etc. ~ Tectu
  5. Thank you very much for reporting this bug. We just fixed it. ~ Tectu
  6. I am sorry for my late reply. I have been quite busy these days. Module name As it makes sense to keep the module name as short as possible (see the following point), I'd strongly prefer to call the module GCONF instead. API I totally agree with the API listed by steved. However, the API style of uGFX is as the following: (); using camelCase. Following these rules, the API has to look like the following: bool_t gconfWrite(uint16_t tag, const void *data, uint8_t size); uint8_t gconfRead(uint16_t tag, void *data, uint8_t size); uint8_t gconfSize(uint16_t tag); I'm sorry but I am very pedantic when it comes to API and naming convention. I am already struggling with the older GDISP code that does not fit into the current naming style. However, this will be updated with the next major release. Edit: I just realize that inmarket already adjusted the API naming accordingly in his second last post. With everything else I agree. This looks like a solid base to start. ~ Tectu
  7. I am AWFULLY sorry. I actually had "make sure that GDISP_RAM is correct" in the list from the other post, but for some reason I deleted the wrong line. But I'm glad to hear that it is working now Feel free to open a new thread for any question you might have. ~ Tectu
  8. I'm sorry, I meant "Call gdispClear() after gfxInit()", not gdispInit() (there even isn't such a thing). At the moment I cannot see any reason why your board_init() does not get called. Please step through your code and show us your trackback / calltree if necessary. Setting the backlight there does not seem to be a very good idea to make sure that the function is being executed as the backlight settings will probably be overwritten after that call. Step through your code instead (or light up an LED if you're not able to properly debug it). Well, when it's an ILI9320 then you should probably also know that there have already be an awful lot of problems with the ILI93xx drivers. It looks like there are MANY different revisions of that chip out there. I myself even had the problem that I received an ILI9325 and the chinese person told me it's an ILI9320 and vice-versa. What I strongly recommend you to do is replace the initialization code inside gdisp_lld_init() and replace it with the working ones you have. ~ Tectu
  9. It looks like you're using the wrong driver. The web site you linked says that the board uses an SSD1289 controller, but inside your board.mk you include the ILI9320 one. Please make sure that you include the right driver. Change the board file accordingly. Other things I have noticed: Disable all the other subsystems until you have your GDISP module working Don't uncomment values in the gfxconf.h file when you leave it to the default value anyway (talking about GDISP_TOTAL_XXX Call gdispClear() after gdispInit(). I recommend to take some vibrant color for debugging (like blue or red). ~ Tectu Edit: fixed typo gdispInit() -> gfxInit()
  10. "evening" is starting here in about 30 minutes. Then I'll take the look as promised. Stay tuned :-P ~ Tectu
  11. I'll take a look into this this evening. I'll keep you posted. ~ Tectu
  12. Using the GFILE to be able to read and write these configs to any file sounds sane. However, I'd definitely keep the GFILE magic hidden behind a real uGFX configuration API. This could become part of the core system (gfx.c) in form of: gfxConfigSave() gfxConfigRead() gfxConfigXxx() About the buffer size: I'd recommend to make the first few bytes the information about the size of the actual content. One could then read out these few bytes, allocate the space and continue reading. This could either be implemented in form of gfxConfigGetSize() or simply doing it manually in gfxConfigRead(). ~ Tectu
  13. Hello Steve This sounds like a good idea and it's definitely suited for the future. Both, Andrew and I, are very busy at the moment. As soon as we finished our current tasks, we'll take a look at this. I'm sure that Andrew has some more comments on his own as well :-P ~ Tectu
  14. Could you please attach your project? The important files are: main.c (any any other related sources) Makefile gfxconf.h board files One more thing to check: Can you please make sure that the backlight is on? You should try to manually enable it in your main source files first. It's very likely that your display is actually displaying it but you just can't see it as the backlight is off. Also, when the backlight is on the screen might either be white or filled with garbage. The later would indicate a successful display controller initialisation. We're more than happy to help where we can. ~ Tectu
  15. This is strange... I took my Embest hardware and I don't experience this issue at all (the backlight is a problem indeed. That one used to work but got merged the wrong way at the end). Could you try to find something like a version or revision number on your Embest LCD board? ~ Tectu
  16. Hello himsha and welcome to the community! We need a lot more information to help you with this one. uGFX version (or repository state) Underlying operating system used (the GOS port you use) The microcontroller that you are using The clock setup of your microcontroller And the most important thing: Please attach your board file (gdisp_lld_board.h). I don't understand your question, I'm sorry. Could you try to rephrase it? ~ Tectu
  17. Hello Wolf, Sorry for our late reply but as we mentioned in the Announcement section we were not only for a couple of days. Do you still have the problem? I took out my STM32F407-Discovery board with the same Embest baseboard + LCD module and everything works as expected here. Could you please attach your main.c (test case) and your gfxconf.h? ~ Tectu
  18. Hello pgeiem and welcome to the community! Looks like you're just in time! We have added a generic framebuffer driver for the GDISP module just yesterday. You can find it under /drivers/gdisp/framebuffer: https://bitbucket.org/Tectu/ugfx/src/1f ... ?at=master To use it, you only have to write the board file. The board file is the interface between the software driver and your actual hardware. You can find a corresponding template in the drivers directory. About the GOS port: You can use the raw32 port which is also part of the official uGFX repository. The port allows it to run uGFX on any bare-bone system. To make it run, you only have to implement/provide the following two functions inside your project: systemticks_t gfxSystemTicks(void); systemticks_t gfxMillisecondsToTicks(delaytime_t ms); The first routine gets a "tick" time from the hardware. The 2nd routine converts a number of milliseconds to a number of ticks (normally just a division by a fixed number). I hope that helps. Let us know should you face any problems. ~ Tectu
  19. Hello Fede, Thank you very much for your contribution. However, the TDISP module has been removed a long time ago as it does not fit the projects goal (anymore). ~ Tectu
  20. We'd welcome any feedback and bug fixes for the FreeRTOS support that is now part of the master branch and therefore the upcoming 2.1 release. ~ Tectu
  21. There's no reason to feel bad about anything! The software is far from bug free and we appreciate any bug report. I'm glad that you got it working ~ Tectu
  22. Thank you very much for another great bug report & patch. It has already been commited. I added your name to the contributions table. If you want you can tell me your real name and I'll add that one as well. ~ Tectu
  23. I just gave it a quick try on the Embest-STM32-DMSTF4BB board (the STM32F407-Discovery with the LCD extension) and the demo works nicely out of the box. Could you track down the problem any further in the meantime? Have you tried a custom image instead? Does another demo, for example the list widget demo, work without any problems? Edit: There was a bug fix in the mean time. Can you please update to the latest master branch? ~ Tectu
  24. Hello iccp, I'm sorry that I didn't have time to come back to you yet but I turned sick and I have to stay in bed for a day or two. I apologize for the inconvenience. ~ Tectu
  25. I'm currently on the road so I can only test with the simulator and there everything works just nicely. I assume that the problem is with the color format. Have you tried to convert and display an image on your own? Either way, I'll be at home in about one hour so I can have a closer look. Edit: This might take some longer than expected - I turned sick. ~ Tectu
×
×
  • Create New...