diff --git a/Code/Python_Code/07.1.1_PCF8591/PCF8591.py b/Code/Python_Code/07.1.1_PCF8591/PCF8591.py index c4c6cbf..80e0be1 100644 --- a/Code/Python_Code/07.1.1_PCF8591/PCF8591.py +++ b/Code/Python_Code/07.1.1_PCF8591/PCF8591.py @@ -12,7 +12,7 @@ address = 0x48 #default address of PCF8591 bus=smbus.SMBus(1) cmd=0x40 #command -def analogRead(chn):#read ADC value,chn:0,1,2,3 +def analogRead(chn):#read ADC value,chn:0,1,2,3 value = bus.read_byte_data(address,cmd+chn) return value