Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config question #2

Open
krulkip opened this issue Sep 5, 2019 · 4 comments
Open

config question #2

krulkip opened this issue Sep 5, 2019 · 4 comments

Comments

@krulkip
Copy link

krulkip commented Sep 5, 2019

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 ?

@tobozo
Copy link
Owner

tobozo commented Sep 5, 2019

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

image

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.

@tobozo
Copy link
Owner

tobozo commented Sep 7, 2019

26a1a2f 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 !

@krulkip
Copy link
Author

krulkip commented Sep 7, 2019

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.

@krulkip
Copy link
Author

krulkip commented Sep 23, 2019

Just to let you know it works fine on a new M5Stack fire but not on the M5Stack basic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants