Jump to content

malachib

Members
  • Posts

    4
  • Joined

  • Last visited

  1. OK, it's nothing on the "pro" level but should get you off the ground: https://github.com/malachi-iot/ugfx-drivers Things to note: Uses my custom and not-yet-mature framework abstraction lib Uses symbolic linking and git submodules, though in your own adaptations that can be avoided Look in tests/* for a couple of adaptations of uGFX gdisp demos tests/* use platformio, but with a little work one should be able to use ESP-IDF makefiles directly with the shown code
  2. Working on turning the code into a presentable example It's a little fiddly and I'm hoping to simplify it. Will post here with updates
  3. Solved by this Beware, things are still as the forum says, the readme.md of gdisp basic sample is outdated. Refer to the linked thread instead
  4. Hey everyone, I am a newcomer to uGFX. But not a newcomer to programming I believe I nearly have uGFX running on an ESP32 with an I2C SSD1306. A proper "uGFX" branding appears on display init. But then, after that, screen goes black and remains black no matter what I've tried. Running at 100Khz, just to ensure things work. I2C APIs not reporting any errors. Any ideas? Thanks in advance! EDIT: Running the "basic" gdisp code, modified slightly: const char tag[] = "displayTask2"; // Yanking this in direct from "basic" demo for gdisp void displayTask2(void *pvParameters) { coord_t width, height; coord_t i, j; ESP_LOGD(tag, "Display init start"); // Initialize and clear the display gfxInit(); ESP_LOGD(tag, "Display init done"); // Get the screen size width = gdispGetWidth(); height = gdispGetHeight(); // Code Here gdispDrawBox(10, 10, width/2, height/2, White); gdispFillArea(width/2, height/2, width/2-10, height/2-10, White); gdispDrawLine(5, 30, width-50, height-40, White); while(TRUE) { for(i = 5, j = 0; i < width && j < height; i += 7, j += i/20) gdispDrawPixel(i, j, White); gfxSleepMilliseconds(5000); gdispClear(Black); ESP_LOGI(tag, "Display redraw"); } }
×
×
  • Create New...