Search found 3367 matches

by pythoncoder
Thu May 02, 2019 8:13 am
Forum: MicroPython pyboard
Topic: VL53L0x
Replies: 9
Views: 182

Re: VL53L0x

@daemeon I strongly recommend learning Python on a PC using an online course or a book. Then notation like 0x42 or b'\x01' would make sense, along with many other language features which go beyond simple loops. With a good grasp of the language you'll be able to follow other people's code. This foru...
by pythoncoder
Mon Apr 29, 2019 6:40 am
Forum: ESP32 boards
Topic: wifi: bcn_timout,ap_probe_send_start
Replies: 2
Views: 272

Re: wifi: bcn_timout,ap_probe_send_start

Weird errors on ESPx usually come from several sources. One is failing to close sockets when they are no longer used: you need to ensure this always happens, through every code path. Secondly internal buffers can overflow. This can happen if one peer puts data into a socket and the other fails to re...
by pythoncoder
Mon Apr 29, 2019 6:28 am
Forum: General Discussion and Questions
Topic: derived class from socket
Replies: 2
Views: 80

Re: derived class from socket

It's worth reading this doc which explains the differences between MicroPython and CPython.

The problem with subclassing buiiltins can usually be worked around by using composition rather than inheritance.
by pythoncoder
Mon Apr 29, 2019 6:25 am
Forum: ESP8266 boards
Topic: esp8266-be the server and links many clients at the same time
Replies: 2
Views: 92

Re: esp8266-be the server and links many clients at the same time

It is possible to write a server using uasyncio rather than threading to handle concurrency. This is much more efficient on resource constrained devices.
by pythoncoder
Mon Apr 29, 2019 6:20 am
Forum: ESP32 boards
Topic: Waveshare e-paper display how to rotate?
Replies: 13
Views: 796

Re: Waveshare e-paper display how to rotate?

Congratulations on getting it working. :D

I strongly recommend getting proficient with Python's object oriented capabilities, either from a book or by following an online course on a PC.
by pythoncoder
Mon Apr 29, 2019 6:08 am
Forum: General Discussion and Questions
Topic: 3d printer firmware based on pyboard
Replies: 13
Views: 386

Re: 3d printer firmware based on pyboard

... I read the L6470 datasheet. It is similar to the TMC5130 I am currently using. It is very convenient to control a single stepper motor by SPI .However, if you need to run the interpolation data, for example, when the XY axis moves at the same time, the synchronization of the two motors cannot b...
by pythoncoder
Sun Apr 28, 2019 8:08 am
Forum: General Discussion and Questions
Topic: 3d printer firmware based on pyboard
Replies: 13
Views: 386

Re: 3d printer firmware based on pyboard

The other option is to use a chip such as the STM L6470. As I understand it you pass the chip a target and it handles microstepping and step rate limitations automatically.
by pythoncoder
Sat Apr 27, 2019 6:00 am
Forum: ESP8266 boards
Topic: Close Socket
Replies: 4
Views: 165

Re: Close Socket

I think this means that the other endpoint is rejecting the connection. I notice you're using a nonblocking socket. This raises at least two issues. As I understand it, SSL/TLS on nonblocking sockets is a very recent addition to MicroPython. It may or may not have issues. Secondly you can't just sen...
by pythoncoder
Fri Apr 26, 2019 5:43 pm
Forum: ESP32 boards
Topic: Waveshare e-paper display how to rotate?
Replies: 13
Views: 796

Re: Waveshare e-paper display how to rotate?

I must admit I hadn't considered the case where someone might want to write to a framebuf and then output the result to a separate display instance. I think you'll have to create a dummy display device derived from framebuf and point the Writer at that. I think the dummy could be along these lines. ...
by pythoncoder
Fri Apr 26, 2019 6:02 am
Forum: ESP32 boards
Topic: Unable to connect rshell to ESP32.
Replies: 3
Views: 200

Re: Unable to connect rshell to ESP32.

@DoanKarfel I would also follow the advice of the error message you are getting and erase the flash prior to installing updated firmware.

Code: Select all

esptool.py  --port /dev/ttyUSB0 erase_flash
(Change the port to match your system).