import cm import utime def banner (msg): print (70 * '=') print (msg) print (70 * '=') banner("version") print (cm.version) banner("credentials") cm.cat("credentials.txt") banner("ls") cm.ls() #led = cm.LED(2) #led.on() #utime.sleep(1.0) #led.off() #led.blink(5, dt=0.2) fin = cm.Servo("D7") fin.low() utime.sleep(0.5) fin.high() utime.sleep(0.5) fin.mean() utime.sleep(0.5) fin.off()
import cm import utime import network import ubinascii import machine import socket led = cm.LED(2) led.on() fin = cm.Servo("D7") pitch = cm.Servo("D8") #pitch.middle() led.blink(1) credentials = cm.get_attributes('credentials.txt') print(credentials) print('starting network ...') credentials = cm.get_attributes('credentials.txt') print(credentials) #ap_if = network.WLAN(network.AP_IF) #print(ap_if.active()) #print(ap_if.ifconfig())