-
Configure the Wi-Fi shield to use.
Edit
mbed_app.json
to include the correct Wi-Fi shield, SSID and password. In our example,wifi-shield
is "WIFI_ISM43362". Notice that STM32 usually support only 802.11g, so you may have to check your wifi configuration."config": { "wifi-shield": { "help": "Options are WIFI_IDW0XX1", "value": "WIFI_IDW0XX1" }, "wifi-ssid": { "help": "WiFi SSID", "value": "\"SSID\"" }, "wifi-password": { "help": "WiFi Password", "value": "\"Password\"" } }
-
Import Sensor library
BSP_B-L475E-IOT01
andwifi-ism43362
. There is a button under the bottom right corner of the screen.
- If you have not installed pygame previously, run
pip install -r requirements.txt
undergame/project
.
- Under
game/project
, runpython treasure-hunt
. - Make sure STM32 board is held in right hand with hand vertical to ground and press the restart button.
- The pygame window will automatically pops up when the wifi connection is successfully established.
- Game instructions:
- Eat the two treasures and avoid getting hit by aesteroids.
- Stand: remain in the same spot.
- Walk: move forward.
- Right twist: turn right.
- Run: fire.
- Raise hand: accelerate.