Greetings to all, I would like to know if the M5atom lite has built-in RTC to be able to use it and an example.
Thank you and best regards.
Posts made by vgamlc
-
RE: RCT M5Atom Liteposted in PRODUCTS
-
Helium cosoleposted in General
Does anyone have an example of how to connect the lorawan modules to the Helium platform?
-
RE: Looking for Factory Test Source code for Core2posted in Core 2
Hello everyone, I have several M5Stack Core2s and since the last update of the M5Stack boards in Arduino it stopped working for me.
I don't know where to go and the error I get is:C: \ Users \ Vicente \ AppData \ Local \ Temp \ arduino_modified_sketch_551346 \ speak.ino: In function 'bool InitI2SSpeakOrMic (int)':
C: \ Users \ Vicente \ AppData \ Local \ Temp \ arduino_modified_sketch_551346 \ speak.ino: 38: 33: warning: 'I2S_COMM_FORMAT_I2S' is deprecated [-Wdeprecated-declarations]
.communication_format = I2S_COMM_FORMAT_I2S, // Set the format of the communication.设置 通讯 格式
^ ~~~~~~~~~~~~~~~~~~
In file included from C: \ Users \ Vicente \ AppData \ Local \ Arduino15 \ packages \ m5stack \ hardware \ esp32 \ 2.0.1 / tools / sdk / esp32 / include / driver / include / driver / i2s.h: 16,
from C: \ Users \ Vicente \ AppData \ Local \ Temp \ arduino_modified_sketch_551346 \ speak.ino: 14:
C: \ Users \ Vicente \ AppData \ Local \ Arduino15 \ packages \ m5stack \ hardware \ esp32 \ 2.0.1 / tools / sdk / esp32 / include / hal / include / hal / i2s_types.h: 95: 5: note: declared here
I2S_COMM_FORMAT_I2S __attribute __ ((deprecated)) = 0x01, / *! <I2S communication format I2S, correspond toI2S_COMM_FORMAT_STAND_I2S* /
^ ~~~~~~~~~~~~~~~~~~ -
RE: Error compiling for board M5Stack-ATOMposted in General
You are a machine, thank you very much.
-
Error compiling for board M5Stack-ATOMposted in General
When updating M5stack boards on arduino platform, it has given me the following error:
Arduino: 1.8.19 (Windows 10), Board: "M5Stack-ATOM, Default, 1500000, None"In file included from C:\DISE�OS\Arduino\libraries\FastLED\src/platforms/esp/32/clockless_rmt_esp32.h:116,
from C:\DISE�OS\Arduino\libraries\FastLED\src/platforms/esp/32/fastled_esp32.h:8,
from C:\DISE�OS\Arduino\libraries\FastLED\src/platforms.h:36,
from C:\DISE�OS\Arduino\libraries\FastLED\src/FastLED.h:52,
from C:\DISE�OS\Arduino\libraries\M5Atom\src/M5Atom.h:54,
from C:\DISEÑOS\Arduino\libraries\M5Atom\examples\Basics\LEDSet\LEDSet.ino:13:
C:\Users\Vicente\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.1/tools/sdk/esp32/include/esp_hw_support/include/esp_intr.h:8:2: warning: #warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead [-Wcpp]
#warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead
^~~~~~~
In file included from C:\DISE�OS\Arduino\libraries\FastLED\src/platforms/esp/32/clockless_rmt_esp32.h:116,
from C:\DISE�OS\Arduino\libraries\FastLED\src/platforms/esp/32/fastled_esp32.h:8,
from C:\DISE�OS\Arduino\libraries\FastLED\src/platforms.h:36,
from C:\DISE�OS\Arduino\libraries\FastLED\src/FastLED.h:52,
from C:\DISE�OS\Arduino\libraries\M5Atom\src\M5Atom.h:54,
from C:\DISE�OS\Arduino\libraries\M5Atom\src\M5Atom.cpp:4:
C:\Users\Vicente\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.1/tools/sdk/esp32/include/esp_hw_support/include/esp_intr.h:8:2: warning: #warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead [-Wcpp]
#warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead
^~~~~~~
C:\DISE�OS\Arduino\libraries\M5Atom\src\M5Atom.cpp: In member function 'void M5Atom::begin(bool, bool, bool)':
C:\DISE�OS\Arduino\libraries\M5Atom\src\M5Atom.cpp:23:28: error: call of overloaded 'begin(int, int, int)' is ambiguous
Wire.begin(25, 21, 100000);
^
In file included from C:\DISE�OS\Arduino\libraries\M5Atom\src\M5Atom.h:53,
from C:\DISE�OS\Arduino\libraries\M5Atom\src\M5Atom.cpp:4:
C:\Users\Vicente\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.1\libraries\Wire\src/Wire.h:79:10: note: candidate: 'bool TwoWire::begin(int, int, uint32_t)'
bool begin(int sda=-1, int scl=-1, uint32_t frequency=0); // returns true, if successful init of i2c bus
^~~~~
C:\Users\Vicente\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.1\libraries\Wire\src/Wire.h:80:10: note: candidate: 'bool TwoWire::begin(uint8_t, int, int, uint32_t)'
bool begin(uint8_t slaveAddr, int sda=-1, int scl=-1, uint32_t frequency=0);
^~~~~
exit status 1
Error compiling for board M5Stack-ATOM.I would need help, thanks in advance
-
Error Network Mesh with M5Stackposted in General
Greetings to all those who help us on these devices.
I am trying to compile the Mesh Painless mesh basic network example and it gives me a series of errors and I am unable to resolve. If I compile the example with an ES32_Dev_Module board it has no problems but when switching to M5Stack Core2 or any of the family (M5Stick or M5Atom) it does not compile.C:\DISENOS\Arduino\libraries\Painless_Mesh\src/arduino/wifi.hpp: In member function 'void painlessmesh::wifi::Mesh::eventHandleInit()':
C:\DISENOS\Arduino\libraries\Painless_Mesh\src/arduino/wifi.hpp:251:22: error: 'SYSTEM_EVENT_SCAN_DONE' is not a member of 'arduino_event_id_t'
WiFiEvent_t::SYSTEM_EVENT_SCAN_DONE);
^~~~~~~~~~~~~~~~~~~~~~
C:\DISENOS\Arduino\libraries\Painless_Mesh\src/arduino/wifi.hpp:260:22: error: 'SYSTEM_EVENT_STA_START' is not a member of 'arduino_event_id_t'
WiFiEvent_t::SYSTEM_EVENT_STA_START);
^~~~~~~~~~~~~~~~~~~~~~
C:\DISENOS\Arduino\libraries\Painless_Mesh\src/arduino/wifi.hpp:271:22: error: 'SYSTEM_EVENT_STA_DISCONNECTED' is not a member of 'arduino_event_id_t'
WiFiEvent_t::SYSTEM_EVENT_STA_DISCONNECTED);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\DISENOS\Arduino\libraries\Painless_Mesh\src/arduino/wifi.hpp:281:22: error: 'SYSTEM_EVENT_STA_GOT_IP' is not a member of 'arduino_event_id_t'
WiFiEvent_t::SYSTEM_EVENT_STA_GOT_IP);
^~~~~~~~~~~~~~~~~~~~~~~
Multiple libraries were found for "WiFi.h"
Used: C:\Users\Vicente\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.0\libraries\WiFi
Not used: C:\Program Files (x86)\Arduino\libraries\WiFi
exit status 1
Error compiling for board M5Stack-Core2.Thanks in advance.
-
Problem with RGB led bar for M5stack core 2posted in Core2 for AWS
Could someone help me with some example on how to control the RGB led bar for m5stack core 2, I am new to this.
Thanks in advance. -
RE: Core2 RTCposted in Core 2
I have the same problem, the time is right but the date is wrong. please a solution
-
RE: Problem speaker with M5stickC Plusposted in M5 Stick/StickC
Another issue, I cannot change the volume on my M5stack Plus. Some help?
-
RE: Problem speaker with M5stickC Plusposted in M5 Stick/StickC
Thanks, you are a machine and fast.
-
Problem speaker with M5stickC Plusposted in M5 Stick/StickC
I am using M5stickc plus at the moment I am very happy with them, but I have had a problem and I cannot find a solution.
I am unable to make a beep sound and I am not listening because, I am attaching the code to see if they can help me.ERRROArduino:1.8.13 (Windows 10), Tarjeta:"M5Stick-C, Default, 1500000, None"
C:\DISEÑOS\Arduino\sketch_nov25b\sketch_nov25b.ino: In function 'void loop()':
sketch_nov25b:51:8: error: 'class M5StickCPlus' has no member named 'Speaker'
exit status 1
'class M5StickCPlus' has no member named 'Speaker'Thanks in advance.
#include <M5StickCPlus.h>
#define INTERVALO_LED 200
#define INTERVALO_LECTURAS 1000uint8_t i = 12;// entre 7 y 12
unsigned long tiempo;
const int Led = 10;
unsigned long Tiempo_Led_Encendido = 0;
unsigned long Tiempo_entre_Lecturas = 0;void setup() {
Serial.begin(115200);
// put your setup code here, to run once:
M5.begin();pinMode (Led, OUTPUT);
digitalWrite (Led, HIGH);
M5.Lcd.setRotation(1); //Rotar LCD
M5.Lcd.fillScreen(BLACK); //Vaciar pantalla y color
M5.Lcd.setTextColor(WHITE); //Color Texto
M5.Lcd.setTextSize(2); //Tamaño Texto
M5.Axp.ScreenBreath(i);
}void loop() {
M5.update(); // need to call update()
if (millis () > (Tiempo_entre_Lecturas + INTERVALO_LECTURAS))
{
M5.Lcd.fillScreen(BLACK); //Vaciar pantalla y color
M5.Lcd.setCursor(0, 0);
M5.Lcd.printf("V_Bateria: %.2fV\r\n", M5.Axp.GetBatVoltage());
M5.Lcd.printf("I_Bateria: %.1fmA\r\n", M5.Axp.GetBatCurrent());
M5.Lcd.printf("V_USB: %.3fV\r\n", M5.Axp.GetVBusVoltage());
M5.Lcd.printf("I_USB: %.3fmA\r\n", M5.Axp.GetVBusCurrent());
M5.Lcd.printf("Vin: %.3fV\r\n", M5.Axp.GetVinVoltage());
M5.Lcd.printf("Iin: %.3fmA\r\n", M5.Axp.GetVinCurrent());
M5.Lcd.printf("Bat power: %.3fmw\r\n", M5.Axp.GetBatPower());
M5.Lcd.printf("Nivel: %u\r\n", M5.Axp.GetWarningLeve());
Tiempo_entre_Lecturas = millis();
}
if(M5.BtnA.wasPressed())
{
digitalWrite (Led, LOW);
Serial.println("Pulsado A");
M5.Axp.ScreenBreath(i++);
M5.Speaker.beep();//////////*****///////
if (i > 12) i = 7;
Tiempo_Led_Encendido = millis();
}
if (!digitalRead(Led) & (millis () > (Tiempo_Led_Encendido + INTERVALO_LED)))
{
digitalWrite (Led, HIGH);
// M5.Speaker.setBeep(900, 1000);
}
} -
Please mesh networkposted in PROJECTS
Is it possible to use the "painlessmesh" library in the M5Stack Core 2 or M5Stick Cplus for Arduino IDE?
I am having trouble compiling it to arduino, it is very necessary for me.
Thank you