bitluni / ESP32VGA

http://bitluni.net/esp32-vga
132 stars 24 forks source link

resolution #6

Closed techno94 closed 5 years ago

techno94 commented 5 years ago

hello i tried to change the resolution, i find in the VGA.cpp all the : const int VGA::MODE

i use the VGAWiFiTextTerminal and i want to have a bigger resolution i just arrived to have the : MODE360x200

but the :

display a black screen. did you have any idea ? thank you

bitluni commented 5 years ago

The example uses the VGA3Bit driver that is built to not use any cpu power in the background. The disadvantage is that it uses 16bits per pixel frame buffer. Higher resolutions won't fit in the memory. You can try if 320x400 fits. If you change VGA3Bit to VGA3BitI higher resolutions will work since this is optimized to take only 4bit per pixel of frame buffer. However that takes some of cpu performance witch will let your wifi connect slowly or even crash the esp if you try to init wifi after vga is initialized

bitluni commented 5 years ago

800x600 and 1024x768 are only base resolutions for the custom resolution functionality. The final pixel clock can't exceed around 19mhz The highest will be around 400x600 based on 800x600. Based on 768 you will ony have like 250 horizontal. Check the custom res example

techno94 commented 5 years ago

thanks a lot for you're kick answer.

I've tried the VGACustomResolution.ino in exemple but nothing is display. Nevermind, i want to use the wifi so i prefer to have something stable.

so i will stay in MODE360x200