@amudon
sudo apt-update は成功しますか?
Global Moderators
Forum wide moderators
-
RE: M5stack CoreInk RTC/deepsleep not working on UIFlow2
Hello @kimtommy
hmm, works for me. Tested both: power off and deep sleep.
I created an example which might help you. You can find it in the UIFlow2 Project Zone: M5CoreInk_PowerOff_DeepSleep_Test_UIFlow2.3.2
Thanks
Felix -
RE: M5StamPLC and the Backlight
Hello @GermanSheepDog
below is an alternative function which works for me too:
#define PI4IOE5V6408_ADDR 0x43 #define OUTPUT_REG 0x05 void my_set_backlight(bool o) { uint8_t data = M5.In_I2C.readRegister8(PI4IOE5V6408_ADDR, OUTPUT_REG, 200000); if(o == true) data |= 0b10000000; else data &= ~0b10000000; M5.In_I2C.writeRegister8(PI4IOE5V6408_ADDR, OUTPUT_REG, data, 200000); }
Thanks
Felix -
RE: M5StamPLC and the Backlight
Hello @GermanSheepDog
your
my_set_backlight()
function works for me andmy_set_backlight(true)
turns the backlight off (inverted logic).void my_set_backlight(bool o) { PI4IOE5V6408_Class p; // false input, true output p.setDirection(7, true); // false off, true on ? p.digitalWrite(7, o); } void setup() { auto cfg = M5.config(); cfg.serial_baudrate = 115200; M5.begin(cfg); M5StamPLC.begin(); } void loop() { M5.update(); if(M5.BtnA.wasClicked() == true) { Serial.println("BtnA clicked - backlight on"); my_set_backlight(false); } if(M5.BtnC.wasClicked() == true) { Serial.println("BtnC clicked - backlight off"); my_set_backlight(true); } }
Thanks
FelixP.S. the AI generated code did not work for me.
-
RE: Tab5 RS485 connector
Hello @clydeps
I don't know the pitch of the connector. However my M5Tab5 came with a matching cable. Maybe double-check your box?
Thanks
Felix -
RE: Desperately Seriously Need Help Programming/Coding!!!!
@SparklesForever
what is "yellow M5 little block sensor" specified? -
RE: Roller485-Lite power supply
@maby2001
If you use a Roller485, you can connect directly to PortA of the Core2 to provide power + I2C control at the same time.Yes, you can use the 485 bus to provide power and I2C control at the same time.
-
RE: Cardputer Driver Issues
@Jomac Are you putting the Cardputer into Firmware mode but holding G0 while plugging in?
-
RE: MQTT apply for messaging is causing out of memory
@oracle_sod I think this may be connected to an error I found.
set up a basic "Hello world" example and check the terminal. I was getting MQTT server errors with basic code because M5Stack are using MQTT for pushing programs from the UIFLow server to the cores. -
RE: cardputer use built in speaker to play wav file error
@zhouyousong said in cardputer use built in speaker to play wav file error:
Reply
hmmm i think that will be bit of hard, but we will keep trying it