[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,19 @@
#!/usr/bin/python
# -*- coding:utf-8 -*-
import smbus
import time
address = 0x48
cmd = 0x40
value = 0
bus = smbus.SMBus(1)
while True:
bus.write_byte_data(address,cmd,value)
value += 1
if value == 256:
value =0
print("AOUT:%3d" %value)
time.sleep(0.01)