Search found 3245 matches

by pythoncoder
Wed Feb 13, 2019 12:22 pm
Forum: ESP32 boards
Topic: ESP32 Debouncing Switches & Relays: IRQ Timer vs Simple Code vs ASYNC
Replies: 21
Views: 724

Re: ESP32 Debouncing Switches & Relays: IRQ Timer vs Simple Code vs ASYNC

You need to read up on Python packages. The server example I gave you is organised as a package, and the import is from __init__.py. However I wouldn't spend time trying to follow the application code. I suggest you look at the _send and _read methods as examples of how to write to and to read from ...
by pythoncoder
Tue Feb 12, 2019 5:57 pm
Forum: ESP32 boards
Topic: ESP32 Debouncing Switches & Relays: IRQ Timer vs Simple Code vs ASYNC
Replies: 21
Views: 724

Re: ESP32 Debouncing Switches & Relays: IRQ Timer vs Simple Code vs ASYNC

I think it's trying to tell you that there is no server on 192.168.1.44 port 80.
by pythoncoder
Tue Feb 12, 2019 8:36 am
Forum: The MicroPython pyboard
Topic: Questions and wish list about Pyboard D
Replies: 23
Views: 1255

Re: Questions and wish list about Pyboard D

blmorris wrote:
Mon Feb 11, 2019 10:45 pm
...The I2S project that pythoncoder referred to is mine (Hi Peter! Miss hanging out here with you guys! :D )...
Hi Bryan, good to know you're still around. :D

It would be great to see this working - it seemed to me that you were very close.

Cheers, Pete
by pythoncoder
Mon Feb 11, 2019 10:29 am
Forum: ESP32 boards
Topic: ESP32 Debouncing Switches & Relays: IRQ Timer vs Simple Code vs ASYNC
Replies: 21
Views: 724

Re: ESP32 Debouncing Switches & Relays: IRQ Timer vs Simple Code vs ASYNC

That link is to a very rudimentary server intended for a specific test. The one I had in mind is this one . There are two sockets to consider. The server socket performs the connection and accept returns a client socket: one for each client which connects. I use the server socket in blocking mode wi...
by pythoncoder
Mon Feb 11, 2019 10:04 am
Forum: The MicroPython pyboard
Topic: Questions and wish list about Pyboard D
Replies: 23
Views: 1255

Re: Questions and wish list about Pyboard D

The Pyboard 1.x has great support for micropower modes. I have four which have been working continuously for a couple of years. Three of them are powered by 3 AA cells - these last well over a year. The four boards wake up once an hour and communicate by radio. The fourth board can also be woken by ...
by pythoncoder
Mon Feb 11, 2019 9:53 am
Forum: ESP8266 boards
Topic: Can not flash SonOff with MP
Replies: 10
Views: 263

But are they any good?

Before investing too much time in the Sonoff you might like to read my experiences with four of their powerline switch boards. I spent a great deal of time trying to make them work reliably and failed.
by pythoncoder
Sun Feb 10, 2019 7:38 am
Forum: ESP32 boards
Topic: ESP32 Debouncing Switches & Relays: IRQ Timer vs Simple Code vs ASYNC
Replies: 21
Views: 724

Re: ESP32 Debouncing Switches & Relays: IRQ Timer vs Simple Code vs ASYNC

You set s to nonblocking, but the new socket conn returned by s.accept is blocking. You will need to adapt the method of reading from it accordingly. I'm not sure that making s nonblocking is wise. If you look at the server code in the repo I referenced, the run function at the start illustrates the...
by pythoncoder
Sat Feb 09, 2019 11:01 am
Forum: ESP8266 boards
Topic: SX127x (LoRa transceiver) driver for (Micro)Python on ESP8266/ESP32/Raspberry_Pi
Replies: 8
Views: 2651

Re: SX127x (LoRa transceiver) driver for (Micro)Python on ESP8266/ESP32/Raspberry_Pi

Fair point, my terminology was inexact. I'd still advocate doing the sums for whatever board is in use ;)
by pythoncoder
Sat Feb 09, 2019 10:34 am
Forum: The MicroPython pyboard
Topic: PyBoard Cannot Factory Reset
Replies: 10
Views: 1368

Re: PyBoard Cannot Factory Reset

Navigator wrote:
Fri Feb 08, 2019 2:33 pm
... Anyway, I suppose I'll contact the maker as you suggest.
Thank you!
Is this not an official Pyboard from George Robotics?