@@ -110,7 +110,7 @@ mrb_mruby_esp32_gpio_gem_init(mrb_state* mrb)
110
110
111
111
adc1_config_width (ADC_BITWIDTH_12 );
112
112
113
- constants = mrb_define_module_under (mrb , gpio , "Constants" );
113
+ constants = mrb_define_module_under (mrb , esp32 , "Constants" );
114
114
115
115
#define define_const (SYM ) \
116
116
do { \
@@ -172,11 +172,11 @@ mrb_mruby_esp32_gpio_gem_init(mrb_state* mrb)
172
172
mrb_define_const (mrb , constants , "LOW" , mrb_fixnum_value (0 ));
173
173
mrb_define_const (mrb , constants , "HIGH" , mrb_fixnum_value (1 ));
174
174
175
- mrb_define_const (mrb , constants , "INPUT " , mrb_fixnum_value (GPIO_MODE_INPUT ));
176
- mrb_define_const (mrb , constants , "INPUT_OUTPUT " , mrb_fixnum_value (GPIO_MODE_INPUT_OUTPUT ));
177
- mrb_define_const (mrb , constants , "OUTPUT " , mrb_fixnum_value (GPIO_MODE_OUTPUT ));
178
- mrb_define_const (mrb , constants , "INPUT_PULLUP " , mrb_fixnum_value (GPIO_MODE_INPUT_PULLUP ));
179
- mrb_define_const (mrb , constants , "INPUT_PULLDOWN " , mrb_fixnum_value (GPIO_MODE_INPUT_PULLDOWN ));
175
+ mrb_define_const (mrb , constants , "GPIO_MODE_INPUT " , mrb_fixnum_value (GPIO_MODE_INPUT ));
176
+ mrb_define_const (mrb , constants , "GPIO_MODE_INPUT_OUTPUT " , mrb_fixnum_value (GPIO_MODE_INPUT_OUTPUT ));
177
+ mrb_define_const (mrb , constants , "GPIO_MODE_OUTPUT " , mrb_fixnum_value (GPIO_MODE_OUTPUT ));
178
+ mrb_define_const (mrb , constants , "GPIO_MODE_INPUT_PULLUP " , mrb_fixnum_value (GPIO_MODE_INPUT_PULLUP ));
179
+ mrb_define_const (mrb , constants , "GPIO_MODE_INPUT_PULLDOWN " , mrb_fixnum_value (GPIO_MODE_INPUT_PULLDOWN ));
180
180
181
181
}
182
182
0 commit comments