Closed Smanar closed 11 months ago
So it's definitively a problem with the lib It work (better, I have image) if I use
https://github.com/rzeldent/esp32-smartdisplay.git
I have tried the old version for the demo same result. I have an image but corrupted.
Hi Smanar,
Might also be that indeed there's something wrong but now, working on the feature branch 'settings-in-board', just tested the esp32-3248S035; it works.
Think this might be caused by the demo code; If the wifi does not connect it the audio pointer is null
Use:
#ifdef HAS_SPEAKER
// Connect to WiFi
WiFi.begin(WIFI_SSID, WIFI_PASSWORD);
if (WiFi.waitForConnectResult() == WL_CONNECTED)
{
audio = new Audio(true, I2S_DAC_CHANNEL_LEFT_EN);
audio->forceMono(true);
audio->setVolume(10);
while (!audio->connecttohost(RADIO_URL))
delay(500);
}
#endif
and
#ifdef HAS_SPEAK
if (audio)
audio->loop();
#endif
The if (audio) was missing!
Something else I noticed. Maybe due to the extra flash. Problems uploading/crc errors etc, even at low speeds. Dit a power cycle with BOOT pressed and flashed. I had a black screen after flashing, frozen. But after a power cycle all worked...
Same result, have started from scratch. With the https://github.com/rzeldent/esp32-smartdisplay-demo/tree/feature/esp32s3 version and your changes.
Have just edited
[env:esp32dev]
board = esp32dev
and
build_flags =
${env.build_flags}
# Smartdisplay selection
-D ESP32_3248S035R
Have used the lv_conf.f from the homepage And If I try this demo version with old lib version (https://github.com/rzeldent/esp32-smartdisplay.git), I have black screen too
The Led is flashing, have return too, only the display is missing.
And if it work, I have same issue than here https://github.com/x821938/ESP32-2432S028R-arduino-platformio-simple-test/issues/1 Corrupted display.
So for information I have tried other projects on github. All project using this libs are broken, the display is working but corrupted (text are like trought a mirror for exemple) Perhaps a change on the hardware or a conflict with others libs versions ?
I m now trying CYD-Klipper, this one work with LVLG too but not your lib and all is working.
"text are like trought a mirror" do you mean like this?
Nope, you can read them on your picture, text is "reversed"on mine. If needed I can make a picture but it's more like this one https://github.com/rzeldent/esp32-smartdisplay/issues/35#issue-1955649807
Hi Smanar,
If it is mirrored you can override the param PANEL_MIRROR_X for the specific device: On my ESP32_3248S035R this works: PANEL_MIRROR_X=true. On your device, set it to false.
The name option might change in the near future as I'm working on this right now.
Hope this helps.
You can use the feature/esps3 branch for that. Make sure to check out the demo with submodules because settings have been moved to the boards. Also there is still development going on!
I can make it working :
-D TFT_FLIPPEDMIRRORED
-D TFT_ORIENTATION_LANDSCAPE
But I think some devices features are not detected, as I have only the "ClickMe" button and the counter, not the picture.
Hi Smanar,
Yes, I think you're using the main branch. That demo has no picture. I was referring to the feature branch, but this is still under development.
On Sun, Dec 17, 2023 at 1:32 PM Smanar @.***> wrote:
I can make it working :
- using old lib
- using old demo code
- using -D TFT_FLIPPEDMIRRORED
- using -D TFT_ORIENTATION_LANDSCAPE
But I think some devices features are not detected, as I have only the "ClickMe" button and the counter, not the picture.
— Reply to this email directly, view it on GitHub https://github.com/rzeldent/esp32-smartdisplay-demo/issues/4#issuecomment-1859159005, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB2ENB43ZWVR3QTSM4RA4RLYJ3Q5XAVCNFSM6AAAAABATQGX3CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJZGE2TSMBQGU . You are receiving this because you commented.Message ID: @.***>
Yes, I think you're using the main branch. That demo has no picture.
Ha ok, so all is working fine with adding thoses settings for my device, I haven't tested other project that use this lib yet as I have already started mine with only basic libs but I think it will be be same solution.
Hello, I m trying to make the demo working, but for the moment without success. The code is running, I can see information on serial monitor, the led is flashing but nothing on display (it is just powered, with white screen) I m using the defaut code with some changes on a 2432S028R Hardware.
And BTW, I had so much warning during compilation