60 lines
1.4 KiB
Markdown
60 lines
1.4 KiB
Markdown
# ESP32 Discord Controller
|
|
|
|
This project allows you to control Discord mute and deafen status using an ESP32 device. The script captures the screen to detect the status and communicates with the ESP32 via a serial connection.
|
|
|
|
## Installation
|
|
|
|
### Prerequisites
|
|
|
|
- Python 3.x
|
|
- pip (Python package installer)
|
|
- An ESP32 device
|
|
- A USB cable to connect the ESP32 to your computer
|
|
|
|
### Python Packages
|
|
|
|
Install the required Python packages using pip:
|
|
|
|
```sh
|
|
pip install pyserial keyboard pygetwindow pyautogui mss numpy pystray pillow
|
|
```
|
|
|
|
### Clone the Repository
|
|
|
|
Clone this repository to your local machine:
|
|
|
|
```sh
|
|
git clone https://github.com/yourusername/ESP32-discord.git
|
|
cd ESP32-discord
|
|
```
|
|
|
|
## Usage
|
|
|
|
### Running the Script
|
|
|
|
You can run the script with the following command:
|
|
|
|
```sh
|
|
python main.py
|
|
```
|
|
|
|
### Specifying the COM Port
|
|
|
|
You can specify the COM port directly when running the script:
|
|
|
|
```sh
|
|
python main.py -com=COM3
|
|
```
|
|
|
|
### Hiding the Console Window
|
|
|
|
If the COM port is specified, the script will hide the console window and run in the system tray. You can quit the application from the tray icon.
|
|
|
|
## Notes
|
|
|
|
- Ensure that your ESP32 device is connected to your computer via USB.
|
|
- The script captures a small region of the screen to detect the mute and deafen status. Adjust the coordinates and dimensions in the script if necessary.
|
|
|
|
## License
|
|
|
|
This project is licensed under the MIT License. |