Replies: 5 comments 26 replies
-
Hi, thanks for the interest in hasp-lvgl. In hasp-lvgl -at the moment- custom sensors will require you to build a custom firmware. Adding the needed libraries and wrapper code should be straight-forward. There are also a lot of projects that handle custom temperature sensors already, like tasmota, espHome, etc... Our focus is currently on the hardware in the supported devices and built-in sensors for the pre-built firmware files. The potential number of sensors is huge, so I'd like to find out which particular ones would warrant built-in support. When a sensor is widely used or present in multiple touchscreen devices, we can reconsider. I do like the idea to have support for common sensors, but for the time being it is on the back-burner. |
Beta Was this translation helpful? Give feedback.
-
You can add This will add the |
Beta Was this translation helpful? Give feedback.
-
WT32-SC01 has this sensor. Also code for this, did you try? |
Beta Was this translation helpful? Give feedback.
-
@nagyrobi how did you go with this? I am in same boat, I want to add I2C devices to Lanbon L8. Also coding in Found these functions in file I'm guessing we somehow need to access these from our custom code? (I have not tried anything yet) If you did do it, do you have code example you could share? If not doable via custom code, maybe a modification to the firmware (slightly out of my depth); or ideally exposing these so it can be done via custom code? |
Beta Was this translation helpful? Give feedback.
-
Would it be possible to add software support for example SHTC3 (high precision temperature and humidity sensor) or MAX44009 (ambient light sensor) both on I2C bus. All it needs to do is publish to an MQTT topic the value of the sensors at regular time interval, say, at every 30 seconds.
I'm specifically looking at Lanbon L8. It has an analog temp sensor by factory, but that kind is quite unreliable and needs calibration. The ambient light would be useful to locally control display backlight/brightness. I'm thinking to solder directly to the module's I2C terminals (parallel with the touch controller), as the sensor uses a different I2C address, it's perfectly feasible.
Or, at least, have a 1-wire DS18B20 instead of the analog one, soldered in place.
Beta Was this translation helpful? Give feedback.
All reactions