Search found 2754 matches

by jimmo
Sat Sep 03, 2022 1:07 pm
Forum: General Discussion and Questions
Topic: new sockets for old?
Replies: 3
Views: 22797

Re: new sockets for old?

KJM wrote:
Fri Sep 02, 2022 12:25 am
I get [Errno 9] EBADF (calling connect on previously closed socket).
Which port and board are you using? Which MicroPython version?

Is that the exact code you're using? The "ipa" variable is never set.
by jimmo
Fri Sep 02, 2022 11:38 am
Forum: Raspberry Pi microcontroller boards
Topic: led flash 10 times, not 5?
Replies: 7
Views: 39522

Re: led flash 10 times, not 5?

Remember that boot.py should only be used to configure hardware that needs to happen before main.py runs (or is required to load main.py, for example configuring filesystems). On the pyboard for example, you must configure the USB mode in boot.py if you want to see the output of main.py on the USB s...
by jimmo
Fri Sep 02, 2022 11:36 am
Forum: Programs, Libraries and Tools
Topic: SoftSPI on ESP32
Replies: 2
Views: 20797

Re: SoftSPI on ESP32

I have to use the SoftSPI, due to the given cardreader connection on the M5Stack Core2. Can you elaborate on why that is? I don't think this is likely the problem, but does it work if you try a higher baud rate? Are you using the latest version of sdcard.py? There were some recent fixes. https://gi...
by jimmo
Fri Sep 02, 2022 7:31 am
Forum: General Discussion and Questions
Topic: new sockets for old?
Replies: 3
Views: 22797

Re: new sockets for old?

Need to see the whole code, including the loop.
by jimmo
Thu Sep 01, 2022 11:52 am
Forum: Announcements and News
Topic: Migration to GitHub Discussions
Replies: 20
Views: 167541

Re: Migration to GitHub Discussions

hippy wrote:
Thu Sep 01, 2022 10:53 am
I'll still be contributing via the MicroPython section of the Raspberry Pi forum.
OK thank you, you do a really great job there! I will try and remember to check that forum occasionally too.
by jimmo
Thu Sep 01, 2022 11:50 am
Forum: ESP32 boards
Topic: install esp-idf 4.4.2
Replies: 3
Views: 23655

Re: install esp-idf 4.4.2

What is the reason for the 'permission denied' (never saw it in previous installs) The consideration to use of '--user' option is unclear: where? That is very strange. It looks like `pip` (invoked from inside the IDF installer) isn't detecting the virtual environment, and is attempting to install a...
by jimmo
Thu Sep 01, 2022 11:35 am
Forum: Pyboard D-series
Topic: os.statvfs() returns negative numbers in tuple
Replies: 9
Views: 102098

Re: os.statvfs() returns negative numbers in tuple

The boot.py is used once to format the flash. After that the boot.py is removed from the pyboard and the rest of the files are copied to the pyboard. Otherwise the boot.py would remove all contents. OK I figured that might be the case. (I was confused why this specifically needed to be boot.py thou...
by jimmo
Thu Sep 01, 2022 2:29 am
Forum: Raspberry Pi microcontroller boards
Topic: @rp2.asm_pio()
Replies: 8
Views: 30177

Re: @rp2.asm_pio()

I appreciate backwards compatibility is an issue but it is possible to support all of the above and retain backwards compatibility. I think partly this was to make the PIO look similar tot he existing @asm_thumb feature in MicroPython. At the end of the day, much of this is about using the existing...
by jimmo
Tue Aug 30, 2022 11:37 pm
Forum: Raspberry Pi microcontroller boards
Topic: @rp2.asm_pio()
Replies: 8
Views: 30177

Re: @rp2.asm_pio()

hippy wrote:
Tue Aug 30, 2022 5:44 pm
And, because it's a two pass assembler, executes it twice, causing the 'print' within it to be executed twice.
Yes good point!

Good example with the demo version... when we get around to writing more docs about it, then that would probably be a worthwhile thing to add!
by jimmo
Tue Aug 30, 2022 2:28 pm
Forum: General Discussion and Questions
Topic: Migration Away from MicroPython.org to GitHub?
Replies: 7
Views: 32242

Re: Migration Away from MicroPython.org to GitHub?

In GitHub, you can also select your code and click the <> button in the editing toolbar (like you can on phpbb) to automatically do the right thing. If it's a inline selection it will use single-backtick, if it's multi-line selection it will triple-backtick. MicroPython.org has superior tools, parti...