Feature/m5stack cores3#1165
Conversation
…' into test/stackchan
…ble into feature/m5stack_cores3
…ble into feature/m5stack_cores3
|
Wow. Great progress on this!! I don't have a CoreS3 yet to try this. Despite the work-in-progress status, do you think it is usable enough that we should merge it? I fI understand correctly, the "virtual button area" is basically for compatibility with projects that expect the A B C buttons of earlier M5Stack products. One important project that requires the buttons is Stack-chan. Is it work making the compatibility behavior optional?
|
They are initialized if `config.virtualButton` is truthy.
|
Yes, I would appreciate it if we could merge this in its current state. Here are my reasons:
I've made the virtual buttons opt-in. If config.virtualButton is truthy, the setup script will initialize the virtual buttons. I'm not sure how much demand there will be for fine-tuning the size and position of the buttons, so I'll add those options if there's demand from other developers. For now, I thought it best to keep the implementation simple with reasonable default values. |
@meganetaaan – Thank you for the quick change. That's all very reasonable.
Makes sense. We'll get that merged. Note that we may be a little slow right now because of summer holidays, but we'll do our best. |
|
Merged. Good luck! |
|
@meganetaaan @phoddie Any chance we could get a minor update to the docs/ here for us who want to try/test and help but no clue how. |
|
Ah, it looks like @meganetaaan didn't update the esp32.md doc yet, probably because this is still in progress. The main thing to know is that the platform target for is From the commits, it looks like display, audio, touch, networking, BLE, etc should all be working from there so the built-in examples should apply. If you have specific questions, please ask. |
|
Ok scratch that post (deleted)... I've reformatted the core3 and flashed many of the examples to it with success. |
|
If there anything else in particular you need tested for this? |
Excellent news!
@meganetaaan may have some ideas. Here are two areas that I thought of:
|
I can report the example works well, I'll try the the border as recommended this evening. Although the drag drops if you move too quickly but I think thats down to the implementation of the example.
I can report the sound example works well. I would love to see the mics implemented as this is core to the app I'm building... I read the notes above and if @meganetaaan you require any testing to help that process, let me know. |
|
@kairos0ne – thanks for the good news. And so quickly.
I wasn't able to reproduce this on a Moddable Two. In looking at the code, I would expect the drag to continue tracking until the driver reports there is no touch detected -- only
Me too! I have a project I'm trying to finish up that uses audio input. @meganetaaan – the Moddable team should have our M5Stack Core3 next week, so please let us know if we can assist in some way. |
|
@phoddie I double checked and back tested the core2 and they have similar behavior, it's not great for the drag and drop if you move fast it doesn't register the drag. I will look at the it and see if I can see what's causing it. |
|
I suspect the finger moves out off the hit area for the button before the onTouchMove function is called and the button looses focus. Not sure will look. |
|
I changed the touch count to 1 and things improved somewhat. Also removed the border as suggested: https://amnesia.io/937143469e0102395265d7b56b1123a88881dfb2c1502d84beb00e9dc5a2e884 |
@kairos0ne - Perhaps that's a hint. I wonder if sometimes when you are moving very quickly it is triggering a multitouch case? If that happens, the |
|
I'll have a dig with some debug code and see whats what... I'd like to have proper look at xsbug anyway and I have some time now, besides I need scroll for my menus for the game I'm building so would make sense for me to learn more in this area. |
This PR is my first attempt to support for M5Stack CoreS3, the latest development board by M5Stack.
https://docs.m5stack.com/en/core/CoreS3
Available features:
There are still many WIP: