Search found 5956 matches
- Wed Aug 17, 2016 8:34 am
- Forum: ESP8266 boards
- Topic: Hangs on MQTT Connection
- Replies: 9
- Views: 9159
Re: Hangs on MQTT Connection
My guess (and it is just that) is that the problems may occur when your WiFi temporarily fails. WiFi sometimes has brief outages which in normal circumstances go unnoticed. It would explain the varied uptimes you are experiencing. A way to diagnose it is to set client.DEBUG = True on each of your bo...
- Wed Aug 17, 2016 8:18 am
- Forum: General Discussion and Questions
- Topic: How do i use micropython to measure voltages
- Replies: 4
- Views: 4997
Re: How do i use micropython to measure voltages
@skyman32 An LDR is a device whose resistance changes with light intensity. It doesn't generate voltage. To convert resistance to voltage you need a second resistor. With the LDR wired between the ADC input and Gnd, you need a resistor between the ADC input and 3.3V (assuming you're using a Pyboard)...
- Wed Aug 17, 2016 7:31 am
- Forum: General Discussion and Questions
- Topic: Interrupt vector numbers
- Replies: 3
- Views: 4947
Re: Interrupt vector numbers
@dwculp Are you aware that two of the timers support decoding quadrature encoders in hardware? http://docs.micropython.org/en/latest/p ... or-a-timer see Timer.channel modes.
- Tue Aug 16, 2016 8:53 am
- Forum: Announcements and News
- Topic: "MicroPython: a journey from Kickstarter to Space" - Damien's keynote at PyCon AU 2016
- Replies: 1
- Views: 39318
Re: "MicroPython: a journey from Kickstarter to Space" - Damien's keynote at PyCon AU 2016
An enjoyable and informative talk
- Mon Aug 15, 2016 12:30 pm
- Forum: Programs, Libraries and Tools
- Topic: mu editor for micropython
- Replies: 46
- Views: 66963
Re: mu editor for micropython
Try
You may also need
These are handy features for checking Python code for style and correctness.
Code: Select all
$ pip install pycodestyle
Code: Select all
$ apt-get install pyflakes
- Mon Aug 15, 2016 8:18 am
- Forum: ESP8266 boards
- Topic: Reboot after crash
- Replies: 11
- Views: 13299
Re: Reboot after crash
Or perhaps:
Code: Select all
try:
your code here
except KeyboardInterrupt:
raise
except Exception:
log your error and restart
- Mon Aug 15, 2016 8:09 am
- Forum: Programs, Libraries and Tools
- Topic: mu editor for micropython
- Replies: 46
- Views: 66963
Re: mu editor for micropython
Fork now supports pasting at the REPL (ctrl-V). So ctrl-E ctrl-V ctrl-D allows code to be pasted in from the editor window or from another application.
- Sun Aug 14, 2016 8:22 am
- Forum: ESP8266 boards
- Topic: Reboot after crash
- Replies: 11
- Views: 13299
Re: Reboot after crash
In general to implement such a feature you need a hardware watchdog timer: if the 'crash' is caused by code going into an infinite loop, no exception will be thrown. The chip used on the Pyboard has such hardware, but as far as I know the ESP8266 doesn't and external hardware would be required.
- Sun Aug 14, 2016 8:16 am
- Forum: ESP8266 boards
- Topic: Change hostname.
- Replies: 15
- Views: 25663
Re: Change hostname.
Have you looked at http://docs.micropython.org/en/latest/e ... ckref.html?
- Sun Aug 14, 2016 8:04 am
- Forum: Drivers for External Components
- Topic: Using the ssd1306.py driver on the ESP8266
- Replies: 3
- Views: 4840
Re: Using the ssd1306.py driver on the ESP8266
If you're using a release build of firmware I think you need to use esp8266-20160809-v1.8.3.bin rather than the latest nightly build. It seems that the nightly builds don't include the libraries. Alternatively copy the file as suggested by @deshipu.