wokwi / rp2040js

A Raspberry Pi Pico Emulator in JavaScript
MIT License
384 stars 40 forks source link

Allow specific image file. #114

Closed BrianPugh closed 1 year ago

BrianPugh commented 1 year ago

Would you be interested in having the micropython image be specifiable via CLI args for the start:micropython script? I'm not a javascript/typescript dev, but if you're open to the idea, I think I could try and make a PR. Seems like something like minimist is the way to go for argument parsing?

urish commented 1 year ago

Sounds like a useful option. What is your specific use case for this? What are you working on?

BrianPugh commented 1 year ago

I'm using rp2040js as an integration tester for Belay. I would like to swap between 2 images (micropython and circuitpython), so having the image be a CLI option seems like a natural choice.

urish commented 1 year ago

Cool use case, thanks for explaining!

mingpepe commented 1 year ago

This feature also useful for me.

BrianPugh commented 1 year ago

resolved in #116