Hello every Body,
is there someone how likes to write a Library or Wrapper for the M5Stack Board?
The general use in B4r is possible.
It works to compile and run basic code but the Board has a SPI ILI9341 TFT and Hardware Buttons.
They didn´t work.
I changed the SPI Pins in the "Adafruit_ILI9341.cpp" library like this:
Look here in Post #7: https://www.b4x.com/android/forum/t...dafruit_ili9341-touch-sensitive-screen.75276/
But have no succsess.
I have purchased the Grey Board with Keyboard Faces:
The Arduino examples are running very good but i failed to use the Arduion Librarys in B4r to use the TFT.
Please Help
THX @all
PS. sorry for my bad English
is there someone how likes to write a Library or Wrapper for the M5Stack Board?
Official Site:
https://m5stack.com/
GitHub Project with Arduino Library and some cool examples:
https://github.com/m5stack/M5Stack
There are 3 Boards called "Cores":
- ESP32 Basic Core IoT Development Kit
- ESP32 GREY Development Kit with 9Axis Sensor
- M5Stack FIRE IoT Development Kit (PSRAM 2.0)
There are many "Modules" and "Units" available.https://m5stack.com/
GitHub Project with Arduino Library and some cool examples:
https://github.com/m5stack/M5Stack
There are 3 Boards called "Cores":
- ESP32 Basic Core IoT Development Kit
- ESP32 GREY Development Kit with 9Axis Sensor
- M5Stack FIRE IoT Development Kit (PSRAM 2.0)
The general use in B4r is possible.
It works to compile and run basic code but the Board has a SPI ILI9341 TFT and Hardware Buttons.
They didn´t work.
I changed the SPI Pins in the "Adafruit_ILI9341.cpp" library like this:
B4X:
// Constructor when using hardware SPI. Faster, but must use SPI pins
// specific to each board type (e.g. 11,13 for Uno, 51,52 for Mega, etc.)
Adafruit_ILI9341::Adafruit_ILI9341(int8_t cs, int8_t dc, int8_t rst) : Adafruit_GFX(ILI9341_TFTWIDTH, ILI9341_TFTHEIGHT) {
// _cs = cs;
// _dc = dc;
// _rst = rst;
// hwSPI = true;
// _mosi = _sclk = 0;
_cs = 15;
_dc = 2;
_mosi = 13;
_miso = 12;
_sclk = 14;
_rst = -1;
hwSPI = false;
}
Look here in Post #7: https://www.b4x.com/android/forum/t...dafruit_ili9341-touch-sensitive-screen.75276/
But have no succsess.
I have purchased the Grey Board with Keyboard Faces:
The Arduino examples are running very good but i failed to use the Arduion Librarys in B4r to use the TFT.
Please Help
THX @all
PS. sorry for my bad English