16 webiopi.debug(
"Basic script - Setup")
18 GPIO.setFunction(SWITCH, GPIO.IN)
19 GPIO.setFunction(SERVO, GPIO.PWM)
20 GPIO.setFunction(LED0, GPIO.PWM)
21 GPIO.setFunction(LED1, GPIO.OUT)
23 GPIO.pwmWrite(LED0, 0.5)
24 GPIO.pwmWriteAngle(SERVO, 0)
25 GPIO.digitalWrite(LED1, GPIO.HIGH)
29 webiopi.debug(
"Basic script - Destroy")
31 GPIO.setFunction(SWITCH, GPIO.IN)
32 GPIO.setFunction(SERVO, GPIO.IN)
33 GPIO.setFunction(LED0, GPIO.IN)
34 GPIO.setFunction(LED1, GPIO.IN)