Skip to content

error in the code #1

Description

@Hussam991

i did it but now i have other problem
the library that i use :
https://github.com/tdack/MAX6675
the code that i use :
``
import MAX6675.MAX6675 as MAX6675

CSK = 25
CS = 24
DO = 18

sensor = MAX6675.MAX6675 (CSK,CS,DO)

try:
        while True:
                Temp = sensor.readTempC()
                print ("temp ==> {0:0.2F}".format(Temp))
except KeyboardInterrupt:
        print ("error")

``
i have an error in this line
sensor = MAX6675.MAX6675 (CSK,CS,DO) "argument 1 must be str, not int"
can you help me

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions