Modify from https://github.com/NTUEE-ESLab/2020-Pikachu-volleyball
DEMO https://youtu.be/EMX9icN5-eM
Take from https://github.com/NTUEE-ESLab/2020-Pikachu-volleyball
git clone https://github.com/finalwee/1092mbed_final_project.git
Run this command to clone the whole repository to your local place.
cd pikachu-volleyball && npm install
or
cd pikachu-volleyball
then npm install
Install all modules required by pikachu-volleyball. If you get any errors, pls fix them.
Make sure your device can run python. If not, pls set up your python first. Recommend python3.
pip3 install websockets
Install websockets module. If you are missing any module, pls install it.
Import by URL: https://github.com/finalwee/STM32-pikavolley. After that, write the program into STM32.
Please make sure, all pre-build is done.
1 player: python3 ws_server_1p.py
2 player: python3 ws_server_2p.py
cd pikachu-volleyball && npm start
or
cd pikachu-volleyball
then npm start
Open http://localhost:8080 to view it in the browser.
Make sure you had written the right program into STM32. Please reference to ./STM32-pikavolley/README.md for the STM32 work logic.