11 lines
271 B
C
11 lines
271 B
C
#pragma once
|
|
|
|
#include "hal/gpio_types.h"
|
|
|
|
typedef struct {
|
|
gpio_num_t pin;
|
|
unsigned int resistance; // milliohm
|
|
} resistor_range;
|
|
|
|
void set_resistor_gpio(resistor_range ranges[], int range_num);
|
|
void activate_range(resistor_range ranges[], int index, int range_num); |