检测后赋码如果返回200也保存赋码结果
添加电机下降按钮 每次赋码结果采用不同的颜色
This commit is contained in:
@@ -210,4 +210,14 @@ def show_xy(xy_list:list):
|
||||
ax.legend()
|
||||
index+=1
|
||||
plt.show()
|
||||
show_xy([(x,y2),(x,y3),(x,y4)])
|
||||
# show_xy([(x,y2),(x,y3),(x,y4)])
|
||||
|
||||
|
||||
# def calc_bytes(a,b,c,i,j,k):
|
||||
# ta=((a&((1<<i)-1))<<(16-i))
|
||||
# tb=((b&((1<<j)-1))<<(16-i-j))
|
||||
# tc=((c&((1<<k)-1))<<(16-i-j-k))
|
||||
# t=ta|tb|tc
|
||||
# return bytearray([t>>8,t&0xff])
|
||||
|
||||
# print(calc_bytes(20,15,13,5,7,4).hex(' '))
|
Reference in New Issue
Block a user