Jump to content

doc_rob

Members
  • Posts

    34
  • Joined

  • Last visited

Everything posted by doc_rob

  1. I found the problem and a solution. The driver works now corectly (at least for my GREENTAB display). What's odd is the display has printed on 128*120 but Resolution is 128*160. I used uGFX 2.7 and ChibiOS 16.1 Can i upload my project somewhere?
  2. Ok, i did it. I've spend a lot of time checking other code and looking at the datasheet of the controller. The Problem was simple, GDISP_HARDWARE_FILLS was TRUE and that caused the Problem. I just need some Help with the colors. It seems GREEN is not been transfered. I tried RGB, BGR. The config is right for sure but somewhere the calculation from Yellow for example which is defined as HTML2COLOR(0xFFFF00) is wrong and i end up with Blue or Black. I've come that far i really don't want to trash everything now. So, to be clear, could anyone please help me with figuring out the color problems. Thank you.
  3. GDISP_PIXELFORMAT does slightly change the wrong colors to a different wrong. For example: with RGB565 it is as follows: Red = Black, Green = Black, Blue = Yellow, Yellow = Blue, Magenta = Yellow with BGR565: Red = Yellow, Green = Black, Blue = Black, Yellow = White, Magenta = Yellow Also there are some warnings during compile: WGDISP_PIXELFORMAT_CUSTOM" is not defined "GOS_NEED_X_THREADS" is not defined "GOS_NEED_X_HEAP" is not defined "GFX_USE_GAUDIN" is not defined Are they in any way related to my problem? Thank you.
  4. Also the colors are wrong, for example Yellow is blue. White and black are correct. Where can i change that?
  5. I've been playing with this driver for a while now and i've got it working (more or less). But one problem i can't solve. After the initialization the screen gets cleared but only half way (actually from the 120Lines about 50). I tried delays after one command byte, after one data byte, slower SPI clock, i changed GDISP_LINEBUF_SIZE but nothing changed. GDISP_SCREEN_HEIGHT is 120 and GDISP_SCREEN_WIDTH is 128. Is there somewhere a configuration in uGFX i missed? I am using uGFX 2.4 now. Thanks.
  6. It looks like you did make exactly the same two changes as i. It does compile but sadly the display isn't too impressed, meaning it still doesn't work. Maybe there is some initialisation missing, i did compare the init with the adafruit source and it is somewhat shorter. I assume the creator had just one type of display and didn't need the other code. I have to check with my logic analyzer. But for now it is still non functional.
  7. Unfortunately i couldn't get a working configuration. Here are some of my errors. I am pretty sure there is an error in gdisp_lld_ST7735.c in the function execute_cmds: static void execute_cmds (const uint8_t *addr) { unsigned int cmds = *addr++; while (cmds--) { write_cmd (g, *addr++); ... it doesn't get g. Some more errors: ../../ugfx_2.7/drivers/gdisp/ST7735/gdisp_lld_ST7735.c:90:18: error: #if with no expression #if ST7735_TYPE_B ../../ugfx_2.7/drivers/gdisp/ST7735/gdisp_lld_ST7735.c:204:14: error: 'g' undeclared (first use in this function) write_cmd (g, *addr++); ../../ugfx_2.7/drivers/gdisp/ST7735/gdisp_lld_ST7735.c:84:101: error: expected ';' before '}' token #define write_data_repeat(g, data, count) { int i; for (i = 0; i < count; ++i) write_data (g, data) } It would be very helpful if somebody could supply a working example. Thank you.
  8. Of course, I will do that as soon as I am at home. Also i will look in the boards folder. Thank you for the suggestion.
  9. Hello everyone, this is my first attempt with ugfx library and I need some help starting with my 1.8 inch display. I found the driver in gdisp and modified a board file from a different example but now it won't compile. Does anyone have a working example preferably for a stm32f4 and Chibios. That would be a great help. Thank you.
×
×
  • Create New...