bitluni / ESP32VGA

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

wifi and flickering #7

Closed techno94 closed 5 years ago

techno94 commented 5 years ago

hello, i try to animate the vga output with variable. so it the cicrcle, rect, text flickering

i have try to add : vga.setFrameBufferCount(2); i'm in VGA3Bit for stabilitie i try in MODE320x200 but the esp32 crash

thanks a lot

bitluni commented 5 years ago

can you please paste your code?

techno94 commented 5 years ago

Hello, here is the code : https://pastebin.com/E3GHdSKT i use 2 lib 1for the wifi connection https://drive.google.com/open?id=14xgQ5YeFjZ_nXssOglJ1FaUI44VIQikt 1 for the char* in the code : (PCHAR(Integer) https://drive.google.com/open?id=1NmcPch_Lg2kjrvE1mJ7KM5KidEbQW374

it's in station mode : connect_STA_smart("ssid","pwd"); (see the IP in serial monitor) when i comment line 28 : vga.setFrameBufferCount(2); it work but flickering

for coding in arduino, i use ardublock (in the IDE tools -> ardublock ESP)with this version ArduinoAug_0.68.21: http://duinoedu.com/dl/logiciels/arduino/arduino_augmente/version_duinoedu/DERNIERE_VERSION/2_EXPERIMENTAL_VERSION/ in this version, i have update the espressif folder who as 10 month old ... see an other closed issue. I make block in ardublock and i would like to make code for esp32VGA

bitluni commented 5 years ago

VGA3Bit is implemented for performance not efficiency. you are probably running out of memory. You can either try VGA3BitI but then you will have to connect to the wifi before initialization or you need to take a smaller resolution

On Mon, Feb 18, 2019 at 8:51 PM techno94 notifications@github.com wrote:

Hello, here is the code : https://pastebin.com/E3GHdSKT i use 2 lib 1for the wifi connection https://drive.google.com/open?id=14xgQ5YeFjZ_nXssOglJ1FaUI44VIQikt 1 for the char* in the code : (PCHAR(Integer) https://drive.google.com/open?id=1NmcPch_Lg2kjrvE1mJ7KM5KidEbQW374

it's in station mode : connect_STA_smart("ssid","pwd"); (see the IP in serial monitor) when i comment line 28 : vga.setFrameBufferCount(2); it work but flickering

for coding in arduino, i use ardublock (in the IDE tools -> ardublock ESP)with this version ArduinoAug_0.68.21:

http://duinoedu.com/dl/logiciels/arduino/arduino_augmente/version_duinoedu/DERNIERE_VERSION/2_EXPERIMENTAL_VERSION/ in this version, i have update the espressif folder who as 10 month old ... see an other closed issue. I make block in ardublock and i would like to make code for esp32VGA

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bitluni/ESP32VGA/issues/7#issuecomment-464856657, or mute the thread https://github.com/notifications/unsubscribe-auth/AMRka_NavA55TmpZAqa5h52qYmEDtZ0Nks5vOwQ4gaJpZM4bBNtn .

techno94 commented 5 years ago

Ok, thanks, i will try tomorrow

techno94 commented 5 years ago

i've tested, you are right, it was du to out of memory with VGA3Bit it work with 200x150 and work well but the connection have to be before the vga initialisation

in VGA3BitI it work with the connection before the vga initialisation in 320x200 but each time data arrived for the web page, the screen become black for 1-2 seconde.

thanks for the tips, it help me tp find a way to solve my bug in VGA3Bit are there some resolution available between 320x200 and 200x150 ?

bitluni commented 5 years ago

You can use a custom resolution based on 640x480 or 640x400.