Skip to main content

Hygrometer with display

My latest tinkering is to connect a 0.96" OLED display to my UDOO Neo Linux/Arduino computer to display soil humidity. After 3 nights of hacking around the Adafruit SSD1306 libraries I got the display code to compile and run on the UDOO Neo Arduino M4 processor. 

I kept getting a compile error when compiling the Adafruit SSD1306 library (see the gory details below). After removing the offending code from the library I was able to get the display working.

Next I connected the Hygrometer and with some code I had the reading displaying in 30 minutes. Now I can see how moisture the soil is. 





To get the Adafruit SSD1306 to compile and run on the UDOO Neo Arduino I commented out the unused SPI define and begin code. I was getting errors the the setClockDivider and beginTransaction could not be imported. Since I am using I2C and not SPI I just commented out the SPI code.




Comments

Popular posts from this blog

ESP MicroPython 16x2 LCD

   Install MicroPython on Wemos D1 Mini https://www.wemos.cc/en/latest/tutorials/d1/get_started_with_micropython_d1.html  https://micropython.org/download/esp8266/ Command line method of flashing MicroPython bin file (firmware): esptool.py --port PORT_NAME erase_flash esptool.py --port PORT_NAME --baud 1000000 write_flash --flash_size = 4MB -fm dio 0 FIRMWARE.bin   uPyCraft method of flashing MicroPython bin file (firmware):  https://how2electronics.com/esp32-micropython-upycraft-getting-started/