Replies: 1 comment 5 replies
-
Hi Tiago
Apart from that, the option to use a "custom hex file" with uFlash was removed, as it would require us to implement the filesystem fully (instead of the cut-down version currently implemented). This would be needed to be able to detect the fs location in memory, specially for custom MicroPython builds, and to be able to detect present files in the hex file already, to be able to add a I believe that in Mu, when adding a path to a custom hex file, then the hex file is flashed to the micro:bit and then the user code is transferred via serial as To create the custom hex file, the simplest way might be to use the micro:bit Python Editor to add your This downloaded hex file from the micro:bit Python Editor will be a "Universal Hex file", and I can't remeber if Mu works with Universal hex files? have you tried that already unsuccessfully? |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I'm getting ready to deliver a beginners workshop where we will be using Mu, the micro:bit, and the this funky cutebot, to be controlled by the micro:bit.
Interfacing with the cutebot requires, unsurprinsingly, low level code that sets/reads/writes micro:bit I/O pins -- this is something I'd like to avoid with these beginners, at least at this stage.
There's this module that abstracts away those details and supports interfacing with the cutebot with higher level abstractions.
Here's my trouble:
imports
cutebot, running is bound to fail.cutebot.py
into the micro:bit.What I'd like:
cutebot.py
in the micro-python filesystem that could be imported.In a way, much like the micro:bit runtime includes other modules like
display
,audio
, etc.I tried uflash but it does not seem to help me: it only embeds a single
.py
file, and it seems to fail at handling the newer v1/v2 universal micro:bit runtime images.I'm likely missing something obvious to some... I'd appreciate any input/ideas to simplify the workshop workflow and allow beginners to focus on the real cutebot actions like
set_motor_speed(x)
, instead ofi2c.write(bla bla bla gibberish for beginners)
.Thanks in advance.
PS: Tagging @carlosperate, hoping his experience with the micro:bit can help? :)
Beta Was this translation helpful? Give feedback.
All reactions