remove i2c stuff

This commit is contained in:
RogueMaster
2022-10-10 01:58:51 -04:00
parent 56b5438b79
commit c181b1d5bc
15 changed files with 0 additions and 841 deletions

View File

@@ -1,35 +0,0 @@
#include "../gpio_app_i.h"
#include <furi_hal_gpio.h>
static I2CSfpState* i2c_sfp_state;
void gpio_scene_i2c_sfp_ok_callback(InputType type, void* context) {
furi_assert(context);
GpioApp* app = context;
if(type == InputTypeRelease) {
notification_message(app->notifications, &sequence_set_green_255);
gpio_i2c_sfp_run_once(i2c_sfp_state);
notification_message(app->notifications, &sequence_reset_green);
gpio_i2c_sfp_update_state(app->gpio_i2c_sfp, i2c_sfp_state);
}
}
void gpio_scene_i2c_sfp_on_enter(void* context) {
GpioApp* app = context;
i2c_sfp_state = malloc(sizeof(I2CSfpState));
gpio_i2c_sfp_set_ok_callback(app->gpio_i2c_sfp, gpio_scene_i2c_sfp_ok_callback, app);
view_dispatcher_switch_to_view(app->view_dispatcher, GpioAppViewI2CSfp);
}
bool gpio_scene_i2c_sfp_on_event(void* context, SceneManagerEvent event) {
UNUSED(context);
UNUSED(event);
return false;
}
void gpio_scene_i2c_sfp_on_exit(void* context) {
UNUSED(context);
free(i2c_sfp_state);
}