//일시 : 2018.01.11내용 : 온,습도 센서// I2C TEMP / HUMI온습도 센서Read_address와 Write_address가 다름Datasheet 참고 실습- 현재 온,습도 출력 import smbus2 as smbus import time bus = smbus.SMBus(1) addr = 0x40 cmd_temp = 0xf3 cmd_humi = 0xf5 soft_reset = 0xfe temp = 0.0 humi = 0.0 val = 0 data = [0, 0] try: bus.write_byte (addr, soft_reset) time.sleep(0.05) # myMotor = motor() while True: # temperature bus.write_byte..