Search found 1207 matches

by Roberthh
Fri Feb 08, 2019 2:43 pm
Forum: The MicroPython pyboard
Topic: PyBoard Cannot Factory Reset
Replies: 10
Views: 1250

Re: PyBoard Cannot Factory Reset

Did you try another USB cable and/or another USB port?
by Roberthh
Fri Feb 08, 2019 1:43 pm
Forum: General Discussion and Questions
Topic: How to hide the cursor in the REPL
Replies: 1
Views: 56

Re: How to hide the cursor in the REPL

That depends on the terminal emulator you use. If it is vt100 compatible, you can try the respectove escap sequence:
ESC [ ? 25 l, as string: "\x1b[?25l"
to switch it on use
ESC [ ? 25 h, as string: "\x1b[?25h"
by Roberthh
Fri Feb 08, 2019 8:39 am
Forum: ESP32 boards
Topic: Cannot open files after memory error
Replies: 4
Views: 86

Re: Cannot open files after memory error

That looks af if you treid already a lot. It seems, that due to memory fragmentation you cod ecannto allocate mmeory anymore for the file buffer. Did you try to allocate the big buffers as early as possible in the code. That would obviously include the frame buffer, but also the file buffer by openi...
by Roberthh
Fri Feb 08, 2019 7:05 am
Forum: Programs, Libraries and Tools
Topic: HX711 - which lib should I use?
Replies: 3
Views: 92

Re: HX711 - which lib should I use?

Take the one that works. I can confuse you a little bit more by pointing at another (of dozens) implementation: https://github.com/robert-hh/hx711-lopy. The interesting part is the variant which uses SPI. It avoids the basic problem with the HX711 drivers on ESP8266 or ESP32: a low pulse of about 60...
by Roberthh
Wed Feb 06, 2019 2:37 pm
Forum: The MicroPython pyboard
Topic: Pyboard does not show as USB device
Replies: 14
Views: 346

Re: Pyboard does not show as USB device

Good bye, and have a good time. A few decades ago i had a short contact with Forth. That's when it surfaced. It wasn't my language. But I had friends who were really exited, using it on an Exidy/Tulip Sorcerer computer. Forth might have improved since then. Being able to solve tasks in as few as pos...
by Roberthh
Wed Feb 06, 2019 10:33 am
Forum: ESP32 boards
Topic: Cannot open files after memory error
Replies: 4
Views: 86

Re: Cannot open files after memory error

OSError 2 is: File not found. The memory error tells you, that you use too much memory for code or data, or that there no continous memory block left for what you need. The code is not that large, and the ESP32 implementation shoulsd leave you about 100k for code and date. So fragmentation is the is...
by Roberthh
Tue Feb 05, 2019 9:11 am
Forum: General Discussion and Questions
Topic: ESP8266 and _thread
Replies: 5
Views: 142

Re: ESP8266 and _thread

In the esp8266 (and ESP32) socket module there is a proprietary method to register a handler, which is called whenever something happens with the socket. It is called like: socket.setsockopt(socket.SOL_SOCKET, 20, my_event_handler) my_event_handler() is a function, which has as argument the socket w...
by Roberthh
Mon Feb 04, 2019 5:56 pm
Forum: ESP32 boards
Topic: How to copy files (e.g. .py, .txt, .dat) to and from the esp32 flash?
Replies: 7
Views: 160

Re: How to copy files (e.g. .py, .txt, .dat) to and from the esp32 flash?

Because the device has a FAT file system. When you write data to place where the file system starts, you actually destroy it, and on the next boot, it will be reinitialized with a default boot.py file.
by Roberthh
Mon Feb 04, 2019 1:11 pm
Forum: ESP32 boards
Topic: How to copy files (e.g. .py, .txt, .dat) to and from the esp32 flash?
Replies: 7
Views: 160

Re: How to copy files (e.g. .py, .txt, .dat) to and from the esp32 flash?

Either dhylands/rshell, or Adafruit ampy or one of the other tools, like mpfshell. Alternatively, I made myself a small ftp server script based on the work of @chrisgp, which I start when needed. And then I can use FilZilla top copy files in & out. https://github.com/robert-hh/FTP-Server-for-ESP8266...
by Roberthh
Mon Feb 04, 2019 11:40 am
Forum: The MicroPython pyboard
Topic: No ADC class in machine module
Replies: 2
Views: 76

Re: No ADC class in machine module

Since the new structure of the docs that is irritating. There is a note in the fineprint that not everything applies to every board. Before the change, there were clear sections in the docs for every board. B.t.w.: for PyBoard, ADC is in the pyb module, whith it's own set of methods. So maybe a note...