The default programming mode with Codey is "Upload mode". Once Codey is connected to mBlock 5, "Upload mode" is toggled on, as shown below:
Under "Upload mode", programming has following features:
- All programmes need to be uploaded to Codey to run. When you finish programming, click "Upload" to upload the programme.
- The uploaded programme can run offline (disconnected from mBlock 5).
- When powered off and on again, Codey will still run the programme that is uploaded last time before it is powered off.
Under "Upload mode", you are not able to combine Scratch stage programming with Codey. (Toggle off "Upload mode" if you want to use Scratch stage programming.)
Hence, several blocks from the Events category are unavailable. These specific blocks are: when green flag clicked, when () key pressed, and broadcast () and wait.
Toggle Off "Upload Mode"
When "Upload mode" is toggled off, programming has the following features:
Programmes no longer need to be uploaded to run. You will find the "Upload" button taken out of the user interface.
Simply click the script to run and see how it works. Edit it and click it to run again. It is convenient for you to test and try your programmes.
Programmes can not run offline. Codey needs to remain connected to mBlock 5.
Scratch stage programming is ready to work with Codey. The three Events blocks are now available, namely when green flag clicked, when () key pressed, and broadcast () and wait.
Under this circumstance, one Event block is now unavailable: when Codey starts up.