Skip to content

Commit 2af229c

Browse files
committed
esp32/modesp32: Remove esp32.hall_sensor function.
The hall sensor is no longer supported by IDF v5. Signed-off-by: Damien George <[email protected]>
1 parent 1db40ed commit 2af229c

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

ports/esp32/modesp32.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -170,12 +170,6 @@ STATIC mp_obj_t esp32_raw_temperature(void) {
170170
}
171171
STATIC MP_DEFINE_CONST_FUN_OBJ_0(esp32_raw_temperature_obj, esp32_raw_temperature);
172172

173-
STATIC mp_obj_t esp32_hall_sensor(void) {
174-
adc1_config_width(ADC_WIDTH_12Bit);
175-
return MP_OBJ_NEW_SMALL_INT(hall_sensor_read());
176-
}
177-
STATIC MP_DEFINE_CONST_FUN_OBJ_0(esp32_hall_sensor_obj, esp32_hall_sensor);
178-
179173
#endif
180174

181175
STATIC mp_obj_t esp32_idf_heap_info(const mp_obj_t cap_in) {
@@ -210,7 +204,6 @@ STATIC const mp_rom_map_elem_t esp32_module_globals_table[] = {
210204
{ MP_ROM_QSTR(MP_QSTR_gpio_deep_sleep_hold), MP_ROM_PTR(&esp32_gpio_deep_sleep_hold_obj) },
211205
#if CONFIG_IDF_TARGET_ESP32
212206
{ MP_ROM_QSTR(MP_QSTR_raw_temperature), MP_ROM_PTR(&esp32_raw_temperature_obj) },
213-
{ MP_ROM_QSTR(MP_QSTR_hall_sensor), MP_ROM_PTR(&esp32_hall_sensor_obj) },
214207
#endif
215208
{ MP_ROM_QSTR(MP_QSTR_idf_heap_info), MP_ROM_PTR(&esp32_idf_heap_info_obj) },
216209

0 commit comments

Comments
 (0)