Skip to content

Commit

Permalink
try stronger gpio
Browse files Browse the repository at this point in the history
  • Loading branch information
markirb committed Sep 16, 2024
1 parent 1dfb448 commit 07546ec
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ShellyMini1Gen3/shelly_init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,18 @@
#include "shelly_sys_led_btn.hpp"
#include "shelly_temp_sensor_ntc.hpp"

#include "driver/gpio.h"

namespace shelly {

void CreatePeripherals(std::vector<std::unique_ptr<Input>> *inputs,
std::vector<std::unique_ptr<Output>> *outputs,
std::vector<std::unique_ptr<PowerMeter>> *pms UNUSED_ARG,
std::unique_ptr<TempSensor> *sys_temp) {
outputs->emplace_back(new OutputPin(1, 7, 1));

gpio_set_drive_capability(GPIO_NUM_7, GPIO_DRIVE_CAP_3);

auto *in = new InputPin(1, 10, 1, MGOS_GPIO_PULL_NONE, true);
in->AddHandler(std::bind(&HandleInputResetSequence, in, LED_GPIO, _1, _2));
in->Init();
Expand Down

0 comments on commit 07546ec

Please sign in to comment.