Navigation

    M5Stack Community

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

    risingmoon

    @risingmoon

    0
    Reputation
    2
    Posts
    457
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    risingmoon Follow

    Posts made by risingmoon

    • RE: ENV III M5StickC-Plus SHT3X issues

      @felmue This fixed the issue! Thanks. I found that this was the issue. It was using Wire.begin() instead of Wire.begin(0,26)

      posted in Units
      R
      risingmoon
    • ENV III M5StickC-Plus SHT3X issues

      I bought both the M5StickC Plus and ENV III Hat from digikey, but I have not been able to get temperature from SHT3X in Arduino IDE. I keep getting Wire.endTransmission() return value of for NACK. How do I fix/debug this or is this HAT broken?

      #include <M5Unified.h>
      #include <Wire.h>
      
      void setup() {
        M5.begin();
        Serial.begin(115200);
        Wire.begin();
        
      }
      
      void loop() {
        // Start I2C Transmission
        Wire.beginTransmission(0x44);
        
        // Send measurement command
        Wire.write(0x2C);
        Wire.write(0x06);
        
        // Stop I2C transmission
        int result = Wire.endTransmission();
        if (result != 0) {
          Serial.println("Failed");
          Serial.println(result);
        }
        delay(5000);
      }
      
      posted in Units
      R
      risingmoon