How our project works:
Main files:
pc_main.py (runs the display on the pc)
serial_connection.py (connects the pc to the microbit using pyserial)
microbit_main.py (runs the microbit)
Modules:
module1_tables.py
module2_crowds.py
module3_queue.py
module4_priority.py
Other files:
distance.py (for ultrasonic distance sensor)
project_flowchart.md (flowchart of problem decomposition)
tests.py (testcases including normal, boundary, error test cases)
-
Clone the repository.
-
Create a virtual environment: python -m venv .venv
-
Activate it: ..venv\Scripts\Activate
-
Install dependencies: python -m pip install -r requirements.txt
PC program: python pc_main.py
Flash the micro:bit: uflash microbit_main.py ufs put distance.py -> to run the ultrasonic distance sensor to run the fan