|sungo a6490c3575||3 weeks ago|
|.gitignore||3 weeks ago|
|LICENSE.md||3 weeks ago|
|Makefile||3 weeks ago|
|README.md||3 weeks ago|
|go.mod||3 weeks ago|
|go.sum||3 weeks ago|
|main.go||3 weeks ago|
App to deal with a Pimoroni Enviro RPi Hat. Most notably, this sends data to MQTT.
Ok. I do need to caution folks here. I wrote this code because I have one of these boards. But the more I work with Pimoroni hardware, the more I think it’s important to communicate that this is not good hardware. Specifically the wiring and pin selection on every one of their products is strange and bad. The python code they ship is (even for python) pretty terrible stuff.
In this specific case, the BME280 is wildly inaccurate. It’s not a problem with the BME280 in general, just with this implementation. Part of it is that the hat sits right over the damn CPU and the PCB heats up over time. But even with that in mind, the readings are well outside the manufacturer’s documented error ranges.
Further, the LCD is documented as “an LCD” without any notion of the chipset. Their python code claims it’s an ST7735, however.
So yeah, this has code to deal with the Pimoroni Enviro RPi Hat. You should not buy one. But this code might help you if you’ve already made a poor life choice.
This is a personal side project and will get about that much attention, maybe less. If you have patches, feel free to contact me ( see https://sungo.io ) but I make no promise as to when or if I’ll respond. But, feel free to fork the code, respecting the license, and have your way with it.
Original code by sungo ( https://sungo.io )
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.