1 2 3 4 5 6 7 8 |
//use joyy and joyx variables function joystickCode(){ } |
1 2 3 4 5 6 |
function tweet(theTweet) { robotSocket.send('tweet,'+theTweet+',0,0,0,0,0'); } |
Set up your account at Plunker
Hack your robot!
Your NodeMCU can be programmed with many different languages and IDEs.
Download the Sloeber IDE above, or download here.
You can also use the Arduino IDE to program. C++(not the online version, though)
There is also ESP8266BASIC which the whole IDE lives on the robot.Not quite as versatile as the Arduino or PlatformIO versions, though.
You can also program it in a language called LUA. Information here.
It is also fun to control your robot via Blynk from your phone. You will have to upload some C++ code to the NodeMCU to make it work. Blynk is well documented and free.
You can also dismantle the robot and use the components to build other IOT “things”.