新建了一个新的解决方案,eduk1_temp_humi,进入代码网络部分是不用想了。进不了命令行连不上网 剩下的都是白搭。
不过代码中有关于OLED的内容。我截取出如下内容
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
import iot
import time
from driver import SPI
from driver import GPIO
import sh1106
if __name__ == '__main__':
oled_spi = SPI()
oled_spi.open("oled_spi")
oled_res = GPIO()
oled_res.open("oled_res")
oled_dc = GPIO()
oled_dc.open("oled_dc")
global oled
oled = sh1106.SH1106_SPI(132, 64, oled_spi, oled_dc, oled_res)
oled.fill(0)
oled.text('Line 1', 10, 2, 1)
oled.text('Line 2', 10, 16, 1)
oled