@@ -41,17 +41,17 @@ namespace encoderwheel {
41
41
static const uint32_t DEFAULT_TIMEOUT = 1 ;
42
42
43
43
private:
44
- static const uint8_t ENC_CHANNEL = 1 ;
45
- static const uint8_t ENC_TERM_A = 3 ;
46
- static const uint8_t ENC_TERM_B = 12 ;
47
- static const uint8_t ENC_COUNTS_PER_REV = 24 ;
48
- static const uint8_t ENC_COUNT_DIVIDER = 2 ;
49
-
50
- static const uint8_t SW_UP = 13 ;
51
- static const uint8_t SW_DOWN = 4 ;
52
- static const uint8_t SW_LEFT = 11 ;
53
- static const uint8_t SW_RIGHT = 2 ;
54
- static const uint8_t SW_CENTRE = 1 ;
44
+ static const uint8_t ENC_CHANNEL = 1 ;
45
+ static const uint8_t ENC_TERM_A = 3 ;
46
+ static const uint8_t ENC_TERM_B = 12 ;
47
+ static const uint8_t ENC_COUNTS_PER_REV = 24 ;
48
+ static const uint8_t ENC_COUNT_DIVIDER = 2 ;
49
+
50
+ static const uint8_t SW_UP = 13 ;
51
+ static const uint8_t SW_DOWN = 4 ;
52
+ static const uint8_t SW_LEFT = 11 ;
53
+ static const uint8_t SW_RIGHT = 2 ;
54
+ static const uint8_t SW_CENTRE = 1 ;
55
55
56
56
// This wonderful lookup table maps the LEDs on the encoder wheel
57
57
// from their 3x24 (remember, they're RGB) configuration to
@@ -146,12 +146,12 @@ namespace encoderwheel {
146
146
void clear ();
147
147
void show ();
148
148
149
- int gpio_pin_mode (int gpio);
150
- void gpio_pin_mode (int gpio, int mode);
151
- int gpio_pin_value (int gpio);
152
- float gpio_pin_value_as_voltage (int gpio);
153
- void gpio_pin_value (int gpio, int value, bool load = true , bool wait_for_load = false );
154
- void gpio_pwm_load (bool wait_for_load = false );
149
+ uint8_t gpio_pin_mode (uint8_t gpio);
150
+ void gpio_pin_mode (uint8_t gpio, uint8_t mode);
151
+ int16_t gpio_pin_value (uint8_t gpio);
152
+ float gpio_pin_value_as_voltage (uint8_t gpio);
153
+ void gpio_pin_value (uint8_t gpio, uint16_t value, bool load = true , bool wait_for_load = false );
154
+ void gpio_pwm_load (bool wait_for_load = true );
155
155
int gpio_pwm_frequency (float frequency, bool load = true , bool wait_for_load = false );
156
156
157
157
private:
0 commit comments