Tuckie / max31855

Raspberry Pi driver for MAX31855 Cold-Junction Compensated Thermocouple-to-Digital Converter
MIT License
53 stars 30 forks source link

Initialise clock #7

Open Pete-C2 opened 7 years ago

Pete-C2 commented 7 years ago

To cope with universal clock pins, the clock needs to be initialised low, otherwise the first bit is lost and all bits are offset by one.

Recommend after initialising self.cs HIGH to add:

Initialise clock low

    GPIO.output(self.clock_pin, GPIO.LOW)