Search found 51 matches

by tannewt
Tue Jul 20, 2021 1:31 am
Forum: Programs, Libraries and Tools
Topic: uasyncio - determining if a function is a coroutine
Replies: 12
Views: 5313

Re: uasyncio - determining if a function is a coroutine

lol ok.. interesting. Why didn't they just use the "official" uasyncio module? .. (sorry I know you're not the right person for this question) I think it was a bit of a timing thing. IIRC WarriorOfWire did the work to turn the keywords on before we had done the big merge from 1.9.4ish up to 1.15 (a...
by tannewt
Mon Jun 28, 2021 11:59 pm
Forum: Raspberry Pi microcontroller boards
Topic: File size differences
Replies: 7
Views: 4765

Re: File size differences

I think the flash definition in the pico-sdk is wrong for some of the Adafruit boards. I think we've fixed it upstream. We don't use those specs in CircuitPython (we dynamically detect it, which messes up the arduino...). We were originally going to ship with 4MB flash but 8MB was in stock so we swi...
by tannewt
Mon Feb 08, 2021 11:11 pm
Forum: Raspberry Pi microcontroller boards
Topic: HID USB Button box controller?
Replies: 8
Views: 6246

Re: HID USB Button box controller?

Yup, we do have HID support. You can get CircuitPython for the Pico here: https://circuitpython.org/board/raspberry_pi_pico/ and the getting started guide is here: https://learn.adafruit.com/getting-started-with-raspberry-pi-pico-circuitpython We don't currently support rotary encoders but it's on o...
by tannewt
Thu Feb 04, 2021 1:38 am
Forum: Raspberry Pi microcontroller boards
Topic: RP2040 Pico and i2c problem
Replies: 8
Views: 9577

Re: RP2040 Pico and i2c problem

Be careful with 5v. The Pico's pins aren't 5v tolerant.
by tannewt
Wed Jan 06, 2021 12:45 am
Forum: Development of MicroPython
Topic: MicroPython and CircuitPython
Replies: 5
Views: 3519

Re: MicroPython and CircuitPython

Hi folks, You don't actually need a separate GitHub fork. You can create a pull request to either by changing the comparison root on the comparison screen. There is also a helpful pop up that appears after you push to a branch. So, view `github.com/micropython/micropython` and push to a branch on yo...
by tannewt
Tue Nov 24, 2020 2:13 am
Forum: Other Boards
Topic: Is it possible to execute a micropython code on Rasperry Pi ?
Replies: 11
Views: 7675

Re: Is it possible to execute a micropython code on Rasperry Pi ?

We do hope to merge 1.13 in at some point after the holidays. (We're crunched on the ESP32-S2 at the moment.)

I'd suggest you reach out to WarriorOfWire about it on that PR or an issue. They've done most of the CP work. Thanks!
by tannewt
Tue Nov 17, 2020 12:58 am
Forum: Other Boards
Topic: Is it possible to execute a micropython code on Rasperry Pi ?
Replies: 11
Views: 7675

Re: Is it possible to execute a micropython code on Rasperry Pi ?

CircuitPython runs on Raspberry Pi, via Blinka Seeing recent queries on the Raspberry Pi bulletin board, I'm not convinced this is a great idea. All of Adafruit's device drivers are being moved over to Blinka, so you basically have to install Blinka (and all of its many, many dependencies) in order...
by tannewt
Tue Sep 15, 2020 12:19 am
Forum: General Discussion and Questions
Topic: Advice for handling external memory in C modules
Replies: 8
Views: 4766

Re: Advice for handling external memory in C modules

Many thanks for this, much food for thought. The best thing to do is to allocate the memory on the MicroPython heap with a bytearray object and then pass the bytearray into the object that takes it. That way the memory can be used again if you get more data. Do you mean ask the initial library to w...
by tannewt
Tue Aug 18, 2020 12:31 am
Forum: Development of MicroPython
Topic: Typesheds
Replies: 15
Views: 8870

Re: Typesheds

In CircuitPython we used to convert our RST to pyi but now we have pyi directly. The autoapi extension is useful to generate the docs from the pyi: https://github.com/readthedocs/sphinx-autoapi
by tannewt
Mon Aug 17, 2020 11:32 pm
Forum: General Discussion and Questions
Topic: Advice for handling external memory in C modules
Replies: 8
Views: 4766

Re: Advice for handling external memory in C modules

1) If the Python script doesn't need to access the individual bytes of the data chunk, can I avoid copying the data into and out of MicroPython's heap? Could I maybe package up the data chunk as a "bytes" object while it is outside of MicroPython's heap, or will this cause complications with the ga...