Yeah, it's possible! You just need to make sure the modules use different communication protocols or assign different pins if they're both using something like SPI. The CC1101 typically uses SPI, and the PN532 can use I2C or SPI—so setting the PN532 to I2C might make things easier.
Best posts made by Slarck
-
RE: How to add multiple modules
-
RE: Looking up the example code for "Rover C Pro + M5StickC PLUS2" & "JoyC + M5StickC PLUS2".
Hey @roanevic, just jumping in here, I’ve tried that same setup recently. The example code Kuriko linked is a good starting point:
https://github.com/m5stack/M5-RoverC/tree/master/examples/RoverC_JoyC_RemoteIt’s designed for StickC, StickC Plus, and the StickC Plus2, so it should work with your hardware. Just make sure you have all the necessary libraries installed (like M5StickCPlus2, RoverC, and JoyC) in the Arduino IDE. Let me know if you hit any snags setting it up.
-
RE: LVGL performance problem
@俺がガンダムだ said in LVGL performance problem:
I applied LVGL on stickc-plus2,with TFT_eSPI's st7789v2 driver.But the refreshing rate is very low (while doing "load screen anim").I know stickc had good performance on drawing screen (by watching the video of M5stick T-Lite Thermal tutorial). And the LVGL also has a good performance through Dial-ESP32-S3 and Din-Meter demonstration video.
So what is the reason of such low performance. Cound it be the TFT_eSPI library?
I’ve seen similar issues on the StickC-Plus2. It could be due to TFT_eSPI settings, try increasing the SPI frequency or enabling DMA. Also, check your LVGL buffer config; full buffering helps with performance.
Latest posts made by Slarck
-
RE: LVGL performance problem
@俺がガンダムだ said in LVGL performance problem:
I applied LVGL on stickc-plus2,with TFT_eSPI's st7789v2 driver.But the refreshing rate is very low (while doing "load screen anim").I know stickc had good performance on drawing screen (by watching the video of M5stick T-Lite Thermal tutorial). And the LVGL also has a good performance through Dial-ESP32-S3 and Din-Meter demonstration video.
So what is the reason of such low performance. Cound it be the TFT_eSPI library?
I’ve seen similar issues on the StickC-Plus2. It could be due to TFT_eSPI settings, try increasing the SPI frequency or enabling DMA. Also, check your LVGL buffer config; full buffering helps with performance.
-
RE: FORUM RULES (!!!!READ THIS FIRST BEFORE POSTING!!!!)
@lukasmaximus said in FORUM RULES (!!!!READ THIS FIRST BEFORE POSTING!!!!):
Posting rules
As with any forum, we ask you to first search for an answer to your problem or visit the FAQ
section. If you really can't find the answer there, consider which forum category your question best fits. This ensures that all the relevant information is kept in the right places.Make sure to name your posts in a descriptive way
Posting code
To make it easier for other users to see your code and copy and paste it for testing
We request that you put your code between 3 back ticks ```, which will put your code in a nice scrollable window with context coloring of the syntax like so..from m5stack import *
from m5ui import *clear_bg(0x111111)
btnA = M5Button(name="ButtonA", text="ButtonA", visibility=False)
btnB = M5Button(name="ButtonB", text="ButtonB", visibility=False)
btnC = M5Button(name="ButtonC", text="ButtonC", visibility=False)
If you are posting information about a terminal command, please use 2 back ticks `` before and after the command to differentiate it from code snippets like so.sudo halt
What's Allowed
Any posts related to M5Stack, ESP-32, IoT etc.. are more than welcome. If you want to talk off topic,c please post in the General section of the forum. No racist, political, religious, or otherwise defamatory topics are accepted on these forums. Posting such content will result in your post being deleted and your account being banned.
Languages
If you would prefer to discuss M5stack in your mother tongue, please avoid posting to the English language forums, as both users and admins will probably not understand you. There are foreign language sections in the global communities section, which are monitored by a moderator who speaks that language. If you don't see your language yet and there is enough interest, you can request an admin to create a new language group for you.
Thanks for reading, and happy posting
@lukasmaximus said in FORUM RULES (!!!!READ THIS FIRST BEFORE POSTING!!!!):
Posting rules
As with any forum, we ask you to first search for an answer to your problem or visit the FAQ
section. If you really can't find the answer there, consider which forum category your question best fits. This ensures that all the relevant information is kept in the right place.sMake sure to name your posts in a descriptive way
Posting code
Toto makes it easier for other users to see your code and copy and paste it for testing
We request that you put your code between 3 back ticks ```, which will put your code in a nice scrollable window with context coloring of the syntax like so..
from m5stack import *
from m5ui import *clear_bg(0x111111)
btnA = M5Button(name="ButtonA", text="ButtonA", visibility=False)
btnB = M5Button(name="ButtonB", text="ButtonB", visibility=False)
btnC = M5Button(name="ButtonC", text="ButtonC", visibility=False)
If you are posting information about a terminal command, please use 2 back ticks `` before and after the command to differentiate it from code snippets like so.sudo halt
What's Allowed
Any posts related to M5Stack, ESP-32, IoT etc.. are more than welcome. If you want to talk off topic,c please post in the General section of the forum. No racist, political, religious, or otherwise defamatory topics are accepted on these forums. Posting such content will result in your post being deleted and your account being banned.
Languages
If you would prefer to discuss M5stack in your mother tongue, please avoid posting to the English language forums, as both users and admins will probably not understand you. There are foreign language sections in the global communities section, which are monitored by a moderator who speaks that language. If you don't see your language yet and there is enough interest, you can request an admin to create a new language group for you.
Thanks for reading, and happy posting
Thanks for putting this together, really helpful to have everything laid out. The note about using backticks for code formatting is especially useful. Looking forward to learning more and contributing where I can. Cheers!
-
RE: M5stickC Plus2 Enhancement Request
@pmolsen Agreed, having those sensors built-in without the magnet would make things a lot easier. It would remove the need for external modules and avoid interference issues. A Plus3 with that setup sounds like a good improvement.
-
RE: PSA: Core 2 not powering off.
@ajb2k3 said in PSA: Core 2 not powering off.:
You may notice that sometimes the Core2 device may not power off when the button is held in for five seconds.
I have noticed that the Button used for power is prone to breaking (I have already notified M5Stack about this issue on multiple occasions)
You can replace the switch, but a simpler fix is to use the "battery paper trick" and stick a small block of insulated substance on top of the switch to hold the cover down.I haven't included pictures as the switch is so small and difficult to photograph.
P.S. This doesn't just affect Core2 devices, and any device that uses this switch may suffer.
Thank you for taking the Time treadad.Adam Bryant
Forum Admin Team and Unofficial documentation and guide creator.UIFlow, so easy an adult can learn it!
If I don't know it, be patient!
I've either not learned it or am too drunk to remember it!
Author of the WIP UIFlow Handbook!
M5Black, Go, Stick, Core2, and so much more, it can't fit in here!Thanks for the heads-up, Adam. I’ve run into the same issue a couple of times and thought it was just me not holding the button long enough. Good to know it might be a hardware fault. I’ll give the battery paper trick a try and see if that helps. Appreciate you sharing the workaround and letting M5Stack know, hopefully they address it in future batches.
-
RE: Looking up the example code for "Rover C Pro + M5StickC PLUS2" & "JoyC + M5StickC PLUS2".
Hey @roanevic, just jumping in here, I’ve tried that same setup recently. The example code Kuriko linked is a good starting point:
https://github.com/m5stack/M5-RoverC/tree/master/examples/RoverC_JoyC_RemoteIt’s designed for StickC, StickC Plus, and the StickC Plus2, so it should work with your hardware. Just make sure you have all the necessary libraries installed (like M5StickCPlus2, RoverC, and JoyC) in the Arduino IDE. Let me know if you hit any snags setting it up.
-
RE: Organisation of this forum
Thanks for the update, ajb2k3. Good to know a full overhaul is in the works, that should deal with navigation and finding the right topics. Looking forward to seeing how it improves the forum experience.
-
RE: 2024 Community Challenge Growing green.
It's great to see technology and nature coming together like this. I've wanted to experiment with automation ideas for my small balcony garden, and this challenge might be the perfect opportunity to start using my M5Stack gear finally. I’m looking forward to seeing what everyone creates!
-
RE: How to add multiple modules
Yeah, it's possible! You just need to make sure the modules use different communication protocols or assign different pins if they're both using something like SPI. The CC1101 typically uses SPI, and the PN532 can use I2C or SPI—so setting the PN532 to I2C might make things easier.
-
RE: compiling sensor module firmware
For compiling the firmware from the M5-PbHUB-Internal-FW repo, try using the Arduino IDE or PlatformIO. Both are open-source and offer a more modern experience. You can also use the command line with PlatformIO, which is pretty flexible.
-
RE: M5dial as bluetooth media controller
Use ESP32's Bluetooth HID capabilities to turn the M5Dial into a media controller. There are some ESP32 BLE HID examples on GitHub that might help, and check the M5Stack Docs or their GitHub for similar projects.