This repository contains code for creating a wireless controller for the DF Pong game. The controller uses Bluetooth Low Energy (BLE) to send movement data to a central device and provides audio feedback through a buzzer.
The Two Button Example demonstrates how to create a simple wireless controller using two buttons and a piezo buzzer. This example is designed for the Nano33 IOT but can be adapted for any Arduino that supports the ArduinoBLE library.
- Two buttons are used to control the movement in the DF Pong game.
- A piezo buzzer provides audio feedback.
- The controller sends BLE signals to the central device to indicate button presses.
- Press the left button to move up.
- Press the right button to move down.
- The buzzer will sound when a button is pressed.
The Start Template Example provides a basic template to start building your own custom controller.
- Basic BLE setup to connect with the DF Pong game.
- Placeholder functions for button presses and buzzer feedback.
- Customize the template by adding your own buttons and buzzer logic.
- Use the provided functions to handle BLE communication and audio feedback.
For more information about the DF Pong game, visit the DF Pong GitHub repository.
