File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ module ESP32
2
2
include Constants
3
3
4
4
module GPIO
5
+ HIGH = ESP32 ::GPIO_HIGH
6
+ LOW = ESP32 ::GPIO_LOW
7
+
5
8
INPUT = ESP32 ::GPIO_MODE_INPUT
6
9
OUTPUT = ESP32 ::GPIO_MODE_OUTPUT
7
10
INPUT_PULLUP = ESP32 ::GPIO_MODE_INPUT_PULLUP
@@ -12,6 +15,9 @@ module GPIO
12
15
OUTPUT_OD = ESP32 ::GPIO_MODE_OUTPUT_OD
13
16
14
17
class Pin
18
+ HIGH = ESP32 ::GPIO_HIGH
19
+ LOW = ESP32 ::GPIO_LOW
20
+
15
21
PIN_MODE = {
16
22
input : ESP32 ::GPIO_MODE_INPUT ,
17
23
output : ESP32 ::GPIO_MODE_OUTPUT ,
Original file line number Diff line number Diff line change @@ -314,8 +314,8 @@ mrb_mruby_esp32_gpio_gem_init(mrb_state* mrb) {
314
314
define_const (DAC_CHANNEL_2 );
315
315
#endif
316
316
317
- mrb_define_const (mrb , constants , "LOW " , mrb_fixnum_value (0 ));
318
- mrb_define_const (mrb , constants , "HIGH " , mrb_fixnum_value (1 ));
317
+ mrb_define_const (mrb , constants , "GPIO_LOW " , mrb_fixnum_value (0 ));
318
+ mrb_define_const (mrb , constants , "GPIO_HIGH " , mrb_fixnum_value (1 ));
319
319
320
320
define_const (GPIO_MODE_INPUT );
321
321
define_const (GPIO_MODE_OUTPUT );
You can’t perform that action at this time.
0 commit comments