Skip to content

Commit

Permalink
Add methods to control 5V on GPIO
Browse files Browse the repository at this point in the history
  • Loading branch information
gsurkov committed Aug 8, 2024
1 parent 816de20 commit 9de7532
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## [0.24]
### Added
- Gpio: 5V control messages: GetOtgMode, GetOtgModeResponse, SetOtgMode

## [0.23]
### Added
- Storage: New TarExtract request to unpack a tar archive to a given directory
Expand Down
16 changes: 16 additions & 0 deletions gpio.proto
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ enum GpioInputPull {
DOWN = 2;
};

enum GpioOtgMode {
OFF = 0;
ON = 1;
};

message SetPinMode {
GpioPin pin = 1;
GpioPinMode mode = 2;
Expand Down Expand Up @@ -55,3 +60,14 @@ message WritePin {
GpioPin pin = 1;
uint32 value = 2;
}

message GetOtgMode {
};

message GetOtgModeResponse {
GpioOtgMode mode = 1;
};

message SetOtgMode {
GpioOtgMode mode = 1;
};

0 comments on commit 9de7532

Please sign in to comment.