RTL8720DN - MQ3


The code runs good in ESP32, when I run it on RTL8720DN
I can not use the following two functions:

// analogSetPinAttenuation(ADC_pin, ADC_11db);
// adcAttachPin(ADC_pin);

Anyway to set bit width of ADC?
Is RTL8720DN’s ADC value in 10-bit ? 12-bit ?

Your answwer will be appreciated !

Hi @rkuo2000

May I know which RTL8720DN dev board are you using?

These 2 functions are not implemented at the moment, if they are requested by multiple users on Github, we might add it in the future release~

Ameba D all have 12-bit SAR ADC

《iCshop1》Ameba BW16 type C RTL8720DN 開發板●368030501730●

SimonXI via Realtek Ameba IOT Developers Forum (RTL8722 RTL8195 RTL8710 RTL8720 BW16 Development board) - IOT / MCU Solutions 瑞昱開發者論壇 開發板 开發者论坛 开發板 <notifications@ameba.discoursemail.com> 於 2022年8月18日 週四 14:02 寫道: