Atom S3 Lite + M5 Thermal (MLX90640) Code Example?
-
Hi, I bought an Atom S3 Lite and a THERMAL from M5Stack. I cannot find any code example for reading the values from the thermal camera.
I tried to use the M5Stack library but its example only cover UNIT and that gives me a "Parameter extraction failed" status when I copy that code into my project.
Any pointers or examples welcome. Doesn't have to be a full project, just some tips that point me into the right direction are appreciated!
/Andreas
-
@brrainz Which part number such as "U016" do you have?
There are several 'M5 Thermal (MLX90640)' -
@teastain Thanks for the reply. I meant the one titled “Thermal” (without 2) and there is only one module.
Anyway, I solved my initial problem - it was related to not setting up the ext_i2c correctly. I also used a mix of M5Unified and M5AtomS3 libraries because out of the box the FastLED that is referred to from M5Unified does not compile and fails with a static pin value check at compile time. I solved all this (and learned a lot).
Now the only problem I have is: how do I connect the two small M5 modules with a male to male adapter. The grove cable works fine for me but I want a zero length grove male 2 male connection so I can print a 3D case and put both modules into it.
-
I just got my M5AtomS3 running with M5Unified (with very little changes from my M5Stick display code - other than fonts.) The buttons changed, and I'm not sure what a double click is yet..
Anyway, your reference to the "static pin value" is where I'm stuck as the M5AtomS3 references the FastLED.h and doesn't compile. I actually want to use FastLED.
Assuming this is the same error, can you document how you got it to compile? (If not I'll post my own problem).
/Users/scott/Documents/Arduino/libraries/FastLED/src/FastLED.h:304:39: required from 'static CLEDController& CFastLED::addLeds(CRGB*, int, int) [with CHIPSET = SK6812; unsigned char DATA_PIN = 23; EOrder RGB_ORDER = (EOrder)66]' /Users/scott/Documents/GitHub/M5Unified-ESP_IOT_Nov24/ESP32_M5Unified/ESP_IOT/src/SensorClass/KeyUnitSensorClass.cpp:124:54: required from here /Users/scott/Documents/Arduino/libraries/FastLED/src/platforms/esp/32/clockless_rmt_esp32.h:358:46: error: static assertion failed: Invalid pin specified static_assert(FastPin<DATA_PIN>::validpin(), "Invalid pin specified"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~