New features for Top board on Pi 5

Hi

I modified the main.py, fan.py, misc.py and oled.py to be able to:

  1. Show SSD temperatures on screen
  2. Show RAID usage on screen
  3. Be able to control fan based also on SSD temperatures.
2 Likes

Hello elranchero,

they are good updates. Question following a previous post that hasn’t attracted much interest; have you got the button working - and if so how? I note the code still uses this (ln 160 misc.py):

line.request(consumer='hat_button', type=gpiod.LINE_REQ_DIR_OUT)

Is there some gpio trick that I am missing - I can’t see how an output line will work as a button input?

Regards

PiPPiP

I fixed something on the fan.py and it works for me.
Check the video on the github repository, I replied to you on your issue raised there.

Was trying to use your code today when I had copied over the conf and only the fan files, but then your Github site was undiscoverable for me to finish the main.py, misc.py and oled.py files. Is your Github site still reachable?

Much thanks for the access! Yes the code is very nice upgrade and the oled display is working well with the much improved outputs for the RAID5 and ssd temps. Although, I am wondering if anyone is still having a challenge with getting the fan running. It won’t go even with changing the conf file temps or changing the except temps in the misc.py file (tried that in case there was a reading error). Also the “switch” key will only change the oled display performing same action as the “slider”.