Search found 4914 matches

by pythoncoder
Tue Feb 16, 2021 1:55 pm
Forum: ESP8266 boards
Topic: Timed input routine not working
Replies: 2
Views: 77

Re: Timed input routine not working

The problem is that the sys.stdin.read methods are blocking calls and are therefore incompatible with uasyncio. You need a nonblocking method which can check whether any characters are waiting on stdin (like the UART any method).

I don't know of a way of doing this.
by pythoncoder
Mon Feb 15, 2021 2:04 pm
Forum: ESP8266 boards
Topic: Frozen modules attempt failed
Replies: 12
Views: 260

Re: Frozen modules attempt failed

I would definitely re-clone: those errors should not occur. It's always a good idea to erase flash on the ESP8266 if you encounter problems (this will wipe any files in the filesystem). It will ensure that inisetup.py creates a new littlefs filesystem. You can check which modules are frozen with hel...
by pythoncoder
Sun Feb 14, 2021 3:27 pm
Forum: Raspberry Pi microcontroller boards
Topic: [SOLVED] SPI on the Pico: has anyone made it work?
Replies: 5
Views: 307

Re: SPI on the Pico: has anyone made it work?

Well I don't know what I was doing yesterday but today it's working fine. Thanks for the pointers.
by pythoncoder
Sun Feb 14, 2021 1:49 pm
Forum: Raspberry Pi microcontroller boards
Topic: [SOLVED] SPI on the Pico: has anyone made it work?
Replies: 5
Views: 307

Re: SPI on the Pico: has anyone made it work?

Thanks both, I'll try again; maybe I was suffering from "finger trouble".

@Roberthh interesting that you are using hard SPI on nonstandard pins. I didn't know you could do that on the rp2, although the Pi Pico doc hints at it by referring to "default SPI pins".
by pythoncoder
Sat Feb 13, 2021 4:38 pm
Forum: Raspberry Pi microcontroller boards
Topic: [SOLVED] SPI on the Pico: has anyone made it work?
Replies: 5
Views: 307

[SOLVED] SPI on the Pico: has anyone made it work?

I'm struggling to get SPI working, either hard or soft. Issuing a soft SPI write produces a clock burst of the specified frequency but the data pin is stuck low. I've tried different data pins to no effect. I am using the machine.SoftSPI constructor. If anyone has got hard or soft SPI output to work...
by pythoncoder
Fri Feb 12, 2021 9:58 am
Forum: General Discussion and Questions
Topic: Class method return none why ?
Replies: 9
Views: 222

Re: Class method return none why ?

Can I suggest you try again. Create a file foo.py with this contents: class ST7735R: def __init__(self, w, h): self.width = w self.height = h def stampa(self): return self.width dspl = ST7735R(128,64) value = dspl.stampa() print('value = {}'.format(value)) Copy it to your ESP32. Then, at the REPL, i...
by pythoncoder
Fri Feb 12, 2021 9:50 am
Forum: Programs, Libraries and Tools
Topic: Fast crc8
Replies: 49
Views: 1025

Re: Fast crc8

I think it's worth considering the actual use case here. The communication link is between a MicrPython host and an ESP32 over a short distance. In normal use I would expect zero errors. The need for CRC is to cater for the case where the ESP32 fails: typically this is a spontaneous reboot. This is ...
by pythoncoder
Thu Feb 11, 2021 7:52 pm
Forum: General Discussion and Questions
Topic: Class method return none why ?
Replies: 9
Views: 222

Re: Class method return none why ?

It works here. I wonder if you were somehow importing a different version of the file. What hardware are you using?