[Add] First commit

This commit is contained in:
2023-03-05 23:38:38 +08:00
commit d3d0304125
109 changed files with 4507 additions and 0 deletions

View File

@ -0,0 +1,18 @@
#!/usr/bin/python
# -*- coding:utf-8 -*-
import smbus
import time
address = 0x48
A0 = 0x40
A1 = 0x41
A2 = 0xA2
A3 = 0xA3
bus = smbus.SMBus(1)
while True:
bus.write_byte(address,A0)
value = bus.read_byte(address)
print("AOUT:%1.3f " %(value*3.3/255))
time.sleep(0.1)