esp32-DCF77_Analyzer_Clock
esp32-DCF77_Analyzer_Clock copied to clipboard
config question
Tried running your software but unfortunately my m5stack keeps resetting with 3 speaker tones also every few seconds. Could not find reason. Tried Chimera core and std core. I see you have the SDA and SCL pins connected to pins 33 and 27. In my m5stack they are 21 and 22. What m5stack do you use ? I do not yet have the DCF77 connected. Could that cause the resetting ?
hey, thanks for your feedback :-)
If you're not using an external RTC module (that's what the SDA/SCL pins are for), you'll probably have issues.
You can still disable the RTC for testing purpose by commenting out the option from the config.h file
I haven't tested the DCF77 on the M5Stack yet, I have the M5Fire and the so called grove connectors aren't compatible with regular dupont cables :-(
The UI is for a 160x128 display so you may find things are smallish on a 320x240 display, I'll publish a patch soon to fix that.
[edit] The UI should work (althgouh not very animated) with RTC disabled, and no DCF77 connected. If you get resets anyway, you'll probably need to double check the pins assignment.
https://github.com/tobozo/esp32-DCF77_Analyzer_Clock/commit/26a1a2f0bfd74a0d05e55079d03fd66c4135f910 took care of separating 160x128 from 320x240 display settings, and I can confirm the RTC module is totally optional, only the DCF77 is mandatory.
have fun !
Thank you very much for your quick reaction. I had to add #include <TimeLib.h> to get rid of 'tmElements_t' has not been declared The resetting has stopped but dont think i did anything to fix that. Thought it had to do with PSRAM which fire has but basic not. I think its used in UI.h #define freeheap heap_caps_get_free_size( MALLOC_CAP_INTERNAL ) Somehow the graphics are not working properly. In the static void InitUI () nothing happens. //TFT_eSprite sprite = TFT_eSprite(&M5.Lcd); sprite.createSprite( M5.Lcd.width(), M5.Lcd.height() ); sprite.fillSprite( TFT_BLACK ); M5.Lcd.pushImage( ( TFT_HALFWIDTH - 32 / 2 ), ( TFT_HALFHEIGHT - 32 / 2 ), 32, 32, (const uint16_t*)LogoSprite.frameBuffer(1) ); When i change sprite to M5.Lcd as above the sprite is shown.
Just to let you know it works fine on a new M5Stack fire but not on the M5Stack basic