Search found 17 matches

by iconoclastica
Mon Mar 15, 2021 4:11 pm
Forum: General Discussion and Questions
Topic: ESP8266 and _thread
Replies: 10
Views: 8237

Re: ESP8266 and _thread

pythoncoder wrote:
Mon Mar 15, 2021 1:46 pm
If you only expect to handle a single client, none of this applies.
Exactly that is my goal: to avoid yet another usb cable ;-)
I have a working solution now by setting the time-out to a low value (0.1), and polling from the main program loop. Having a callback would have been more elegant.
by iconoclastica
Mon Mar 15, 2021 1:09 pm
Forum: General Discussion and Questions
Topic: ESP8266 and _thread
Replies: 10
Views: 8237

Re: ESP8266 and _thread

Hmm, that is a lot more code to do the same. It may be more efficient, but optimizing without the need to optimize is not.
by iconoclastica
Sun Mar 14, 2021 8:47 pm
Forum: General Discussion and Questions
Topic: ESP8266 and _thread
Replies: 10
Views: 8237

Re: ESP8266 and _thread

Roberthh wrote:
Tue Feb 05, 2019 9:11 am
socket.setsockopt(socket.SOL_SOCKET, 20, my_event_handler)
When this code is used as alternative for

Code: Select all

client, address = socket.accept()
how could I find the remote address from the incoming socket?
by iconoclastica
Fri Nov 27, 2020 2:46 pm
Forum: ESP32 boards
Topic: usb serial speed
Replies: 4
Views: 2121

Re: usb serial speed

I assume you've seen this already, but you need to hold GPIO0 low while resetting. Then esptool.py should be able to connect to it. I had found that (and a few other similar advices) and tried it, but to no avail. However, after reading your suggestion I tried it once again with a bit more confiden...
by iconoclastica
Thu Nov 26, 2020 11:16 am
Forum: ESP32 boards
Topic: usb serial speed
Replies: 4
Views: 2121

Re: usb serial speed

I have come to the belief that it is a clone board and as such a bad specimen of them. It doesn't bear any Wemos marks and the voltage regulator is a '4B2X'. Already I have ordered new ones from the official shop. I hoped to get on with my project until the new boards arrive by lowering the baud rat...
by iconoclastica
Wed Nov 25, 2020 3:28 pm
Forum: ESP32 boards
Topic: usb serial speed
Replies: 4
Views: 2121

usb serial speed

I have a new D1 mini (which is probably an old one, as it reports version '2.2.0-dev(9422289)') to replace the lolin32-lite I had before but which got fried. It works, more or less, but the serial communication to the computer by USB picks up a lot of invalid characters. On arduinos I would lower th...
by iconoclastica
Fri May 03, 2019 2:31 pm
Forum: ESP32 boards
Topic: i2c and the lilon32 Lite
Replies: 8
Views: 5823

Re: i2c and the lolin32 Lite

AFAIK there are no python-drivers yet for the digole display. The unit I am using I am writing myself - therefore I am definitive to say that the only i2c method it calls is writeto(). At some point I will need to read out a return value. This first test, once I got connection, was promising, but th...
by iconoclastica
Fri May 03, 2019 1:03 pm
Forum: ESP32 boards
Topic: i2c and the lilon32 Lite
Replies: 8
Views: 5823

Re: i2c and the lolin32 Lite

I replaced the display with a pn-535 mini rfid reader. That one too doesn't show up in the scan(). I will try the pullups next. ----------------------------- A sign of life! Hope looms... First I tried the pull-ups on the rfid sensor. That didn't work. Then I put the display back in place. Using the...
by iconoclastica
Fri May 03, 2019 9:14 am
Forum: ESP32 boards
Topic: i2c and the lilon32 Lite
Replies: 8
Views: 5823

Re: i2c and the lilon32 Lite

Not sure if what I have is the Lite version, but what works for me is scl=5, sda=4 just like on esp8266. I have also seen (but not tried yet) examples using scl=22 and sda=21. Well, that's the point with the Lite: there is no 21. I now tried 4 and 5, but I saw no difference. a) did you try to swap ...
by iconoclastica
Fri May 03, 2019 6:54 am
Forum: ESP32 boards
Topic: i2c and the lilon32 Lite
Replies: 8
Views: 5823

i2c and the lilon32 Lite

I am trying to establish a connection between the lolin32 Lite and a touch screen (Digole) by means of i2c. import machine pinSDA = machine.Pin(22) pinSCL = machine.Pin(23) # Create an I2C object out of our SDA and SCL pin objects i2c = machine.I2C(sda=pinSDA, scl=pinSCL) # address on the I2C bus di...