9 lines
257 B
C
9 lines
257 B
C
#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); |