-
Notifications
You must be signed in to change notification settings - Fork 29
Description
moin,
I just set up the smart fan unit with circuitpython an a blade with a CM5. There are a few things that are currently not in the documentation that would've been helpful.
First, the uart is different on the CM5. On CM4 it's uart5, on CM5 its uart4.
These settings /boot/firmware/config.txt settings worked for me on the CM5:
enable_uart=1
dtoverlay=uart4-pi5
dtparam=uart4=on
Also, the docs on https://github.com/uptime-industries/circuitpy-fan-unit`` could use some extra information. I downloaded the current uf2 like described (adafruit-circuitpython-raspberry_pi_pico-en_US-9.2.1.uf2```).
However, that image is missing some of the requirements that the code.py needs. The docs mention these at the header but the description could use the extra step of putting these into lib.
I cloned
https://github.com/adafruit/Adafruit_CircuitPython_NeoPixel.git
https://github.com/adafruit/Adafruit_CircuitPython_Register.git
https://github.com/adafruit/Adafruit_CircuitPython_EMC2101.git
and copied the libraries into the /lib subdirectory on the circuitpython device.
/lib/adafruit_emc2101/
/lib/adafruit_register/
/lib/neopixel.py
Maybe a note that the USB device will reset after copying the UF2 and then show up as a different device with different content and that it has to be remounted would be good.
Most of this is probably clear to people who worked with CircuitPython before. But for Blade users who just want to set up their Smart Fan Unit, a bit more detailed docs would be helpful.