This Python script enables the control of an Eliobot using physical buttons to record and execute movement commands such as forward, backward, right, and left turns. The script utilizes a NeoPixel for visual feedback corresponding to different actions and includes the functionality to play jingles at the start and end of command sequences.
- CircuitPython firmware installed on your board
- Required CircuitPython libraries:
neopixel
digitalio
time
board
elio
- Clone this repository or copy the source code.
- Ensure your CircuitPython board is connected to your computer.
- Copy the script into your main.py file (with Thonny or a similar IDE).
- Restart the board to start the program.
- Recording Commands:
- Press the associated buttons to record the commands
Forward
,Backward
,Right
, andLeft
. - Commands are recorded in sequence as they are input via the buttons.
- Press the associated buttons to record the commands
- Executing Commands:
- Press the
Start
button to stop recording and start executing the recorded commands.
- Press the
- Stopping Execution:
- During execution, press the
Stop
button to halt further actions.
- During execution, press the
- Repeating Commands:
- Press the
Repeat
button to execute the last sequence of commands that were executed.
- Press the
This script uses locks for the debounce of the button.
Contributions to the project are welcome. Please fork the repository and submit a pull request with your enhancements.