Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8013

Automation, sensing and robotics • Re: Pi 5 max6675 k type

$
0
0
Perhaps an inconsistent usage of self.cs

Code:

        self.cs  = DigitalOutputDevice(cs,  active_high=False, initial_value=True)    def read_temp_c(self) -> float:        self.cs.off()      

If you set active_high = False, then I would expect that cs.on() would be appropriate. And initial_value=False ?

Statistics: Posted by ghp — Wed Jun 04, 2025 4:28 am



Viewing all articles
Browse latest Browse all 8013

Trending Articles