i’m fairly new to makecode and CPE, but had lots of luck messing with CircuitPython and MuEditor.
now turning my attention to makecode, i get the same result on 2 different computers:
copying the .uf2 file that downloads from makecode onto the CPLAYBOOT drive does one thing - disconnects the CPLAYBOOT drive from the system entirely. game over.
CPE in bootloader mode - check.
files on the drive look right (txt file shows most recent version, etc.)
copy the file that run perfectly in the simulator onto CPLAYBOOT…lights out, drive disconnect.
i even checked that makecode could pair with the drive - it did - no difference.
This sounds normal - this happens to me a lot when games get too big in MakeCode Arcade and once it finishes flashing it never starts the program. Can you try a simple program that just flashes the neopixels maybe??? That should be small enough to work.
thanks - it wasn’t the size but more along the lines of: “the program worked in the simulator, but fails on the CPE”.
the tutorial uses an “On Shake” input, which, for the life of me, did not want to live inside a forever loop, so i assumed it didn’t need one.
simulator runs it just fine - shake, things happen. shake again. things happen.
downloading that program to the CPE - lights out.
i did as you suggest - make a simple program that just turns the LEDs on one color, then another, in a forever loop. worked exactly as advertised.
i’m a fairly sharp fellow, and was tripped by something in that tutorial that relates to looping. i assume there is some real reference that explains how those blocks must be constructed so that the program actually runs on a real CPE?
in my opinion the Siren tutorial is either incomplete, misleading, or simply broken.
it starts out with a forever loop in the UI, yet never says what to do with it.
i have been unable to make that program, as shown in the tutorial work.
please enlighten me - this was a SUPER frustrating virgin MakeCode experience.
Sorry, that sounds frustrating! To answer your questions:
All programs in the Adafruit editor begin with the forever block on the workspace, but you don’t necessarily need to use it. The siren tutorial doesn’t use this block at all; instead all of the code lives within the on-shake block:
thank you - i was unaware of the various ‘top-level’ blocks, and that multiple of those can exist in the same project / program.
it might be a good idea to suggest at the top of the tutorial to review a page such as this:
in order to get a high level perspective on that.
as it was, i think i followed the instructions in the tutorial precisely and the result was not a valid program.