Closed kim-rok closed 6 years ago
Sorry, currently there is no more written documentation on the scripting language available than the README. Once consolidated, I will work on this.
Also, there is no buildin PWM support. Guess, it would need an additional pin definition command (like "pinmode input") and a new output action (like "gpio_out"). Both canbe added to"lang.c" (see line 839 ff.). Will think about this for the next release.
Added PWM: Try "gpio_pwm
Added a sample in the "scripts" directory.
Added a decription of the scripting language here; https://github.com/martin-ger/esp_mqtt/blob/master/SCRIPTING.md
What a nice project! my project need PWM control. So how can I enable PWM function? And where can I get the documents about scripting language used in "script.pir" and "script.sonoff"?