Search found 1 match

by brandobur
Wed Jul 11, 2018 12:45 pm
Forum: General Discussion
Topic: Wake Up - ADC - Hall Sensor
Replies: 7
Views: 13217

Re: Wake Up - ADC - Hall Sensor

Hi, maybe it will help, I have written it today (works also in Arduino IDE): #include "esp32/ulp.h" #include "soc/rtc_cntl_reg.h" #include "driver/rtc_io.h" #include "driver/adc.h" void ulp_adc_wake_up(unsigned int low_adc_treshold, unsigned int high_adc_treshold) { adc1_config_channel_atten(ADC1_CH...