Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FL-3889] Add methods to control 5V on GPIO #51

Merged
merged 2 commits into from
Sep 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
3 changes: 3 additions & 0 deletions flipper.proto
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ message Main {
.PB_Gpio.ReadPin gpio_read_pin = 55;
.PB_Gpio.ReadPinResponse gpio_read_pin_response = 56;
.PB_Gpio.WritePin gpio_write_pin = 57;
.PB_Gpio.GetOtgMode gpio_get_otg_mode = 72;
.PB_Gpio.GetOtgModeResponse gpio_get_otg_mode_response = 73;
.PB_Gpio.SetOtgMode gpio_set_otg_mode = 74;
.PB_App.AppStateResponse app_state_response = 58;
.PB_Property.GetRequest property_get_request = 61;
.PB_Property.GetResponse property_get_response = 62;
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;
};
Loading