Skip to content

Commit

Permalink
Examples readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ZodiusInfuser committed Oct 29, 2024
1 parent 7e8ba4d commit 3d06c4a
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 5 deletions.
49 changes: 49 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# QwSTPad Micropython Examples <!-- omit in toc -->

These are micropython examples for the Pimoroni [QwSTPad](https://shop.pimoroni.com/products/qwstpad), an I2C gamepad controller breakout.

- [Function Examples](#function-examples)
- [Read All](#read-all)
- [LED Wave](#led-wave)
- [Pad Detect](#pad-detect)
- [Game Examples](#game-examples)
- [Random Maze](#random-maze)
- [Multi-Player](#multi-player)


## Function Examples

### Read All
[function/read_all.py](function/read_all.py)

How to read all of the buttons on QwSTPad.


### LED Wave
[function/led_wave.py](function/led_wave.py)

Apply a wave effect across QwSTPad's onboard LEDs.


### Pad Detect
[function/pad_detect.py](function/pad_detect.py)

How to detect multiple QwSTPads and handle their unexpected connection and disconnection.


## Game Examples

### Random Maze
[games/random_maze.py](games/random_maze.py)

A single player QwSTPad game demo. Navigate a set of mazes from the start (red) to the goal (green).
Mazes get bigger / harder with each increase in level.
Makes use of 1 QwSTPad and a Pico Display Pack 2.0 / 2.8.


### Multi-Player
[games/multi_player.py](games/multi_player.py)

A multi-player QwSTPad game demo. Each player drives a tank-like vehicle around an arena
with the goal of hitting other players with projects to get the most points.
Makes use of 1 to 4 QwSTPads and a Pico Display Pack 2.0 / 2.8.
2 changes: 1 addition & 1 deletion examples/function/led_wave.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from qwstpad import ADDRESSES, NUM_LEDS, QwSTPad

"""
Apply a wave effect across QwSTPad's onboard LEDs
Apply a wave effect across QwSTPad's onboard LEDs.
"""

# Constants
Expand Down
2 changes: 1 addition & 1 deletion examples/function/pad_detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from qwstpad import ADDRESSES, QwSTPad

"""
How to detect multiple QwSTPads and handle their unexpected connection and disconnection
How to detect multiple QwSTPads and handle their unexpected connection and disconnection.
"""

# Constants
Expand Down
2 changes: 1 addition & 1 deletion examples/function/read_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from qwstpad import ADDRESSES, QwSTPad

"""
How to read all of the buttons on QwSTPad
How to read all of the buttons on QwSTPad.
"""

# Constants
Expand Down
2 changes: 1 addition & 1 deletion examples/games/multi_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"""
A multi-player QwSTPad game demo. Each player drives a tank-like vehicle around an arena
with the goal of hitting other players with projects to get the most points.
Makes us of 1 to 4 QwSTPads and a Pico Display pack 2.0 / 2.8
Makes use of 1 to 4 QwSTPads and a Pico Display Pack 2.0 / 2.8.
Controls:
* U = Move Forward
Expand Down
2 changes: 1 addition & 1 deletion examples/games/random_maze.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"""
A single player QwSTPad game demo. Navigate a set of mazes from the start (red) to the goal (green).
Mazes get bigger / harder with each increase in level.
Makes us of 1 QwSTPad and a Pico Display pack 2.0 / 2.8
Makes use of 1 QwSTPad and a Pico Display Pack 2.0 / 2.8.
Controls:
* U = Move Forward
Expand Down

0 comments on commit 3d06c4a

Please sign in to comment.