In BlocklyProp, programs are often referred to as projects. You need to define the project’s attributes before you start coding.
In the toolbar, click New project, and this window will open:
The BlocklyProp workspace starts out blank. To the left of the workspace is a category menu of BlocklyProp blocks (note that these are updated periodically). Clicking items with an arrow will open a sub-category menu.
To build a program, you will click, drag, and drop these blocks into your workspace in the order they need to run. Blocks placed near each other that are meant to fit together will snap into place with an audible click. You can click, drag, and drop to separate them again if needed. Many blocks have entry fields and drop-down menus you will use to choose how the blocks behave. Some blocks are designed to fit inside other blocks and work together.
Your Badge WX is locked to prevent programming each time the power is cycled off and turned back on. This is to prevent hackers from causing mischief. To start programming your Badge WX, you must manually unlock it first. There are two ways to unlock the Badge WX using its buttons, 1) persistent unlock, and 2) one-time temporary unlock.
Persistent unlock (recommended)
This method will keep the Badge WX unlocked for programming until you turn it off and back on, or until you use a Badge WX Programming Lock block.
One-Time temporary unlock
After power-up and connection to a Wi-Fi Access Point, the Badge displays the "Connected!" message, as yours should now.
The Badge WX will display the "WiFi Programming activated" screen. The Badge WX can now be programmed, but will lock again automatically a few seconds after you run your code. Further download attempts will fail since the Badge WX was only unlocked for a single download.
Run Once (load code to RAM)
Load and Run (save code to EEPROM):
This First Program example code displays data on the Badge's OLED screen, first the word " Badger!" and then numbers counting from 1 to 100. If it hadn't displayed data, the screen would still show whatever was on it before the code download, such as the "Connected!" or "WiFi Programming Activated!" message, depending on how you unlocked it. So, it is a good idea for your projects to include some sort of OLED message, even if it is just "Done!" so you know your code did run.