Navigation

    M5Stack Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. ChrisWR
    • Continue chat with ChrisWR
    • Start new chat with ChrisWR
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups
    Save
    Saving

    ChrisWR

    @ChrisWR

    4
    Reputation
    20
    Posts
    1741
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    ChrisWR Follow

    Posts made by ChrisWR

    • RE: M5Stack-MegaChess - Any update?

      https://drive.google.com/file/d/1Gx1Nh-VmZIU_m0ZbCK0UWXfuLv6L06Tq/view?usp=sharing

      posted in PROJECTS
      ChrisWR
    • RE: Using CardKB (not hat) with M5StickC
      
      
      #include <M5StickC.h>
      #include <Wire.h>
      
      #define CARDKB_ADDR 0x5F
      
      void setup()
      {
        M5.begin();
        Serial.begin(115200);
        Wire.begin();
        M5.Lcd.fillScreen(BLACK);
        M5.Lcd.setRotation(3);
        M5.Lcd.setCursor(1, 10);
        M5.Lcd.setTextColor(YELLOW);
        M5.Lcd.setTextSize(2);
        M5.Lcd.printf("IIC Address: 0x5F\n");
        M5.Lcd.printf(">>");
      }
      void loop()
      {
        Wire.requestFrom(CARDKB_ADDR, 1);
        while(Wire.available())
        {
          char c = Wire.read(); // receive a byte as characterif
          if (c != 0)
          {
            M5.Lcd.printf("%c", c);
            Serial.println(c, HEX);
           // M5.Speaker.beep();
          }
        }
        // delay(10);
      }
      
      
      
      posted in M5 Stick/StickC
      ChrisWR
    • RE: How could I make text to speech using the speaker?

      Try this for the M5stickC could work, ...

      #include <M5StickC.h>
      #include <Arduino.h>
      #include <ESP8266SAM.h>  //https://github.com/earlephilhower/ESP8266SAM
      #include <AudioOutputI2S.h>  //https://github.com/earlephilhower/ESP8266Audio
      
      AudioOutputI2S *out = NULL;
      
      void setup()
      { 
        out = new AudioOutputI2S(0, 1, 32);
        out->begin();
      }
      
      void loop()
      {
        ESP8266SAM *sam = new ESP8266SAM;
        sam->Say(out, "Can you hear me now?");
        delay(500);
        sam->Say(out, "I can't hear you!");
        delete sam;
      }
      
      posted in SOFTWARE
      ChrisWR
    • RE: How could I make text to speech using the speaker?

      This works on the M5stack, for the stickC I cannot test tho..

      #include <M5Stack.h>
      #include <M5StackUpdater.h>
      #include <Arduino.h>
      #include <ESP8266SAM.h>  //https://github.com/earlephilhower/ESP8266SAM
      #include <AudioOutputI2S.h>  //https://github.com/earlephilhower/ESP8266Audio
      
      AudioOutputI2S *out = NULL;
      
      void setup()
      {
        M5.begin();
        Wire.begin();
        if(digitalRead(BUTTON_A_PIN) == 0){
          Serial.println("Will load menu binary");
          updateFromFS(SD);
          ESP.restart();
        }  
        out = new AudioOutputI2S(0, 1, 32);
        out->begin();
      }
      
      void loop()
      {
        ESP8266SAM *sam = new ESP8266SAM;
        sam->Say(out, "Can you hear me now?");
        delay(500);
        sam->Say(out, "I can't hear you!");
        delete sam;
      }
      
      posted in SOFTWARE
      ChrisWR
    • RE: How to change LCD print text on runtime without creating another line

      @andreaf said in How to change LCD print text on runtime without creating another line:

      M5.Lcd.print("some text")

      M5.Lcd.setCursor(xposition , yposition);
      M5.Lcd.print("some text")

      or ;

      M5.Lcd.drawString("some text"), xposition , yposition , txtsize);

      posted in Arduino
      ChrisWR
    • RE: M5Stack Fire and M5 Piano?

      get a proto and build the 15 pins female port in it..

      Proto stack

      posted in Modules
      ChrisWR
    • RE: M5-bit (Micro-Bit) part 2

      @ajb2k3 0_1577665242771_Image1.jpg
      0_1577665257165_Image2.jpg
      0_1577665274871_Image3.jpg

      posted in PROJECTS
      ChrisWR
    • RE: M5-bit (Micro-Bit) part 2

      @ajb2k3 Its not uiflow, its makecode (for micro-bit) and arduino for m5

      posted in PROJECTS
      ChrisWR
    • RE: M5-bit (Micro-Bit) part 2

      @world101 ok, thx

      posted in PROJECTS
      ChrisWR