我在收集数据:
ads.mode = ADS.Mode.SINGLE
chan = AnalogIn(ads, ADS.P0, ADS.P1)
buffer = []
buffer.append(chan.value) # I'm collecting chan values in the buffer
当chan的数量达到144
值时,我想创建.tiff
大小的图像,其中2P = 12
和2Q = 12
(12*12给出144)以及后续的chan值 按图像中箭头所示的顺序写入:
对于在python中使用数组的人来说,这个问题看起来很简单。我将非常感谢你的帮助。
1条答案
按热度按时间h4cxqtbf1#
我想你是说这个。
结果