msgbranch [mybranch]
print "set the branch"
wait
[mybranch]
myColorVar = msgget("color")
print myColorVar
let myReturnMsg = "You Entered " & myColorVar
msgreturn myReturnMsg
if myColorVar == "red" then
io(po,16,1)
delay 1500
io(po,16,0)
end if
wait
trebuie sa pun cod dupa msgreturn, daca adaug prima nu functioneaza
.........................................................................................................
http://192.168.4.1/msg?color=blue
io(po,pinNo,pinStat) po,pwo,servo
in basic esp pinNo=16 per GPIO16,Pin0
programming with arduino
TEST GPIO14
void setup() {
pinMode(14, OUTPUT); // Initialize the LED_BUILTIN pin as an output
Serial.begin(115200);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(14, LOW); // Turn the LED on (Note that LOW is the voltage level
// but actually the LED is on; this is because
// it is acive low on the ESP-01)
Serial.println(LED_BUILTIN);
delay(1000); // Wait for a second
digitalWrite(14, HIGH); // Turn the LED off by making the voltage HIGH
delay(2000); // Wait for two seconds (to demonstrate the active low LED)
}
ESP12 BASIC LANGUAGE
cls
let pinNo = 0
let pinStat = 0
print "Pin Number"
textbox pinNo
print "Pin Stat"
textbox pinStat
button "Set Pin" [SetThePin]
button "Set Pin PWM" [SetThePinPWM]
button "Set Servo" [SetThePinServo]
button "Exit " [TestExit]
wait
[SetThePin]
po pinNo pinStat
wait
[SetThePinPWM]
pwo pinNo pinStat
wait
[SetThePinServo]
servo pinNo pinStat
wait
[TestExit]
end