Gunner
November 12, 2018, 1:37am
4
And yet you still didn’t properly format it as per the Welcome Topic (so I did it for you).
Reading things like that and the Documentation will show you how to do what you ask about.
Hey, welcome to Blynk Community.
This is the best place to ask questions, leave feedback and share your ideas.
If this is the first time you hear about Blynk, check out our website www.blynk.cc and come back!
As the community is big (and growing), let’s agree on some basic rules.
Asking for help
Before creating a new topic and asking for help, please check if your question was already answered:
Use forum search function
You may want to check out:
Blynk Documentation
Blynk Wiki
Blynk Exa…
http://help.blynk.cc/getting-started-library-auth-token-code-examples/blynk-basics/keep-your-void-loop-clean
http://help.blynk.cc/getting-started-library-auth-token-code-examples/blynk-basics/how-to-control-anything-with-blynk-app
BLYNK_WRITE(vPin) { // Use Button/Switch Widget set to a corresponding vPin
if (param.asInt() == 1) { // If button state is 1 or HIGH
// Run START motor code (don't block... use timed functions)
} else { // If button state is 0 or LOW (or actually anything else then the prior option)
// Run STOP motor code
}
}