From 8cc98729a129948a944ec0bf94a15daf023e0526 Mon Sep 17 00:00:00 2001 From: Suhaylzhao <838119509@qq.com> Date: Sat, 20 Aug 2016 21:53:04 +0800 Subject: [PATCH] fix some non-ASCII character In the file "PCF8591.py" --- Code/Python_Code/07.1.1_PCF8591/PCF8591.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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