Skip to content

Commit 537aa55

Browse files
committed
Create GPIOControl.h for GPIO control module interface
1 parent eeae32b commit 537aa55

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

src/GPIOControl.h

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# GPIO Control Module Interface
2+
3+
This header file defines the interface for controlling GPIO pins through mesh messages.
4+
5+
## Functions
6+
7+
### void gpio_init();
8+
- Initializes the GPIO pins.
9+
10+
### void gpio_set_pin(int pin, bool value);
11+
- Sets the specified GPIO pin to the given value.
12+
13+
### bool gpio_get_pin(int pin);
14+
- Returns the current value of the specified GPIO pin.
15+
16+
### void gpio_toggle_pin(int pin);
17+
- Toggles the value of the specified GPIO pin.
18+
19+
### void gpio_send_mesh_message(MeshMessage message);
20+
- Sends a mesh message to control GPIO pins.

0 commit comments

Comments
 (0)