B4R Code Snippet M5 Stick-C

Hi,

I am playing a little bit with this device:


20201206_215449.jpg


M5StickC is a ESP32 development board for rapid prototying .

  • ESP32-based
  • Built-in 6-Axis IMU
  • Red LED
  • IR transmitter
  • Microphone
  • Buttons, LCD(0.96 inch)
  • Built-in Lipo Battery
  • Extendable Socket
M5Stick-C

Official Site:
https://m5stack.com/
GitHub Project with Arduino Library and some cool examples:
https://github.com/m5stack/M5Stack

The Arduino examples are running good and i startet to use the Device with B4R.
in the Arduino IDE you have to install the M5-Stick library

I'm build my first wrapper's and learn a lot about librarys.
Thanks to the forum members.
Atteched some examples how to use it with B4R.

Update...
in the M5stack Community Forum i have add a link to b4x.com
for more information about M5 visit https://forum.m5stack.com/


Michael
 
Last edited:

Michael1968

Active Member
Licensed User
Longtime User

Attachments

  • axp192.zip
    9.7 KB · Views: 338
Last edited:

Michael1968

Active Member
Licensed User
Longtime User
M5StickC I2C bus

the device has two I2C bus

bus0 for the built in I2c devices IMU-RTC-Power
bus1 can be used with the grove connector.

rwblinn has written a helper program to scan the I2c bus.
https://www.b4x.com/android/forum/threads/i2c-address-scanner.75815/

this works with M5Stick too.
to scan bus1 you have to change in Erel's wire library
B4r:
Wire.begin(); //standart Bus0
to
Wire.begin(21,22,10000); //BUS1 ATOM/M5-Stick at Grove connector pin21/22
 

phillipsback

New Member
Dear Michael1968,
I'd learn lots from your creation. Trying to make my own warper.
M5StickC also my favorite Dev. toy. I made this and attached some examples for it.
 

Attachments

  • rStickc.zip
    14.8 KB · Views: 134
Top