News for hackers. Stuff that matters.
Re:Why I stopped hacking the Amazon Dash button and learned ... by region_alias on Sunday July 31, 2016 @09:44PM (#12199785)
For working with esp8266 is it necessary to learn Python? For example, to flash the firmware do I need to have Python installed? Or is there a way to do this in Lua, or in C?
Re:Why I stopped hacking the Amazon Dash button and learned ... by noonespecial on Sunday July 31, 2016 @09:53PM (#12199813)
In C, most esp incarnations can be used with the Arduino IDE.

https://learn.sparkfun.com/tutorials/esp8266-thing-hookup-gu...

For Lua, nodeMCU's got your back.

http://nodemcu.com/index_en.html

Re:Why I stopped hacking the Amazon Dash button and learned ... by hedgehog on Monday August 01, 2016 @03:07AM (#12200660)
This is a pretty good way to go. I wrote the software for a 40ish node lighting control network built with NodeMCU boards. The software was C++ via the Arduino IDE, it all worked out pretty well.
Re:Why I stopped hacking the Amazon Dash button and learned ... by Cerium on Monday August 01, 2016 @12:31AM (#12200205)
Checkout NodeMCU. You can program in lua. There are some downsides, but overall my experience with NodeMCU is fairly good. Just like everyone else, I've been using them to upload sensor data (humidity, temperature, strain).

Documentation: https://nodemcu.readthedocs.io/en/dev/ esp8266 flash utility: https://github.com/nodemcu/nodemcu-flasher IDE: http://esp8266.ru/esplorer/

Tips: The cpu is responsible for everything, so if you crash it or get it into a loop the serial output will stop. Be careful with what you put in the init.lua, since it will run on startup. If you do get stuck in a boot loop simply hold down the button while pressing reset, and it will get into a recovery mode. Then use the nodemcu-flasher to reflash the chip.

Re:Why I stopped hacking the Amazon Dash button and learned ... by garybake on Monday August 01, 2016 @03:58AM (#12200813)
I would recommend micropython on the esp8266 as then you can use the same code that was running on the pi with a few tweeks. https://github.com/micropython/micropython/tree/master/esp82... http://docs.micropython.org/en/latest/esp8266/