Search found 130 matches

by hippy
Sat Oct 01, 2022 2:46 pm
Forum: Development of MicroPython
Topic: [Solved] User defined data types broken 1.19.1-443
Replies: 6
Views: 38044

Re: User defined data types broken 1.19.1-443

This message is triggered by https://github.com/micropython/micropython/blob/master/ports/rp2/Makefile#L33 So if your Makefile is indeed identical then that means that make (from cmake's generated makefile) isn't returning non-zero ?? It seems to have been another case which proves that posting abo...
by hippy
Sat Oct 01, 2022 12:52 pm
Forum: Development of MicroPython
Topic: [Solved] User defined data types broken 1.19.1-443
Replies: 6
Views: 38044

Re: User defined data types broken 1.19.1-443

Interesting. This is what I get doing a stock RP2 build with the same error introduced - [ 6%] Building C object CMakeFiles/firmware.dir/main.c.obj /home/pi/pico/micropython/ports/rp2/main.c:29:1: error: expected identifier or (' before '/' token / ^ make[2]: *** [CMakeFiles/firmware.dir/build.make:...
by hippy
Fri Sep 30, 2022 5:19 pm
Forum: Development of MicroPython
Topic: [Solved] User defined data types broken 1.19.1-443
Replies: 6
Views: 38044

Re: User defined data types broken 1.19.1-443

Many thanks for the link and no need to apologise for having not seen the post sooner. Might as well start with good news - Worked for me; now compiling again without error. Just had to change the definition in the OP. I hadn't known about that linked page, nor the Wiki to be honest. I guess I need ...
by hippy
Sat Sep 24, 2022 8:52 am
Forum: Development of MicroPython
Topic: [Solved] User defined data types broken 1.19.1-443
Replies: 6
Views: 38044

[Solved] User defined data types broken 1.19.1-443

Some time ago I created a user defined data type, along with unary and binary operators for it, which I recall was based on online documentation and examples, eg https://micropython-usermod.readthedocs.io/en/latest/usermods_10.html What I have basically boils down to this - const mp_obj_type_t monot...
by hippy
Thu Sep 01, 2022 10:53 am
Forum: Announcements and News
Topic: Migration to GitHub Discussions
Replies: 20
Views: 168723

Re: Migration to GitHub Discussions

Hope to see you at GitHub Discussions! Unfortunately, due to my employment and contract, I am not able to contribute anything on GitHub where that creates a conflict of interest so I won't be able to use that. I haven't contributed a lot here so possibly no great loss, and I'll still be contributin...
by hippy
Thu Sep 01, 2022 10:35 am
Forum: Raspberry Pi microcontroller boards
Topic: @rp2.asm_pio()
Replies: 8
Views: 30425

Re: @rp2.asm_pio()

or at least a very significant rewrite, to allow error checking to prevent things like 'set(x, 255)' and 'mov(x, 255)' mistakes and many others. Isn't this mostly just a matter of adding more argument checking to the set() and mov() functions? Why does that require a significant rewrite? (I didn't ...
by hippy
Wed Aug 31, 2022 12:52 pm
Forum: Raspberry Pi microcontroller boards
Topic: @rp2.asm_pio()
Replies: 8
Views: 30425

Re: @rp2.asm_pio()

My view is that RP2.py needs to be nuked from orbit and completely rewritten to allow specification of free-form PIO assembler, viz - @rp2.asm_pio() def MyAsm(): """ start: nop jmp start """ I'd be even more happier with having StateMachine do the assembly - MyAsm = """ start: nop jmp start """ sm =...
by hippy
Tue Aug 30, 2022 5:44 pm
Forum: Raspberry Pi microcontroller boards
Topic: @rp2.asm_pio()
Replies: 8
Views: 30425

Re: @rp2.asm_pio()

(In other words -- the PIO doesn't execute your Python function. Rather the asm_pio decorator executes your function immediately as teh decorator is applied, and that's why the print statements run straight away). And, because it's a two pass assembler, executes it twice, causing the 'print' within...
by hippy
Fri Jul 15, 2022 3:24 pm
Forum: Raspberry Pi microcontroller boards
Topic: network.USB ?
Replies: 2
Views: 2211

Re: network.USB ?

But having said that now I'm wondering if possibly you mean that Pico is a usb _device_, and it presents as a network device to the PC, allowing the PC to talk to the Pico via a network interface (over the USB cable). Similar to what you do with something like a Raspberry Pi using libcomposite/gadg...
by hippy
Fri Jul 15, 2022 12:07 pm
Forum: Raspberry Pi microcontroller boards
Topic: network.USB ?
Replies: 2
Views: 2211

network.USB ?

MicroPython provides 'network.LAN' and 'network.WLAN' but is there anything which provides 'network.USB' which supports networking over USB, any resources which would help someone create such a thing ? There have been some successful efforts to provide USB networking on a Pico but they have bridged ...