- 7 -
PWM
Unlike most Atmel chips (Arduino), the D1 Mini module does not support
hardware PWM. However, software PWM is supported on all digital pins. The
default PWM range is 10 bits at 1kHz, but this can be changed (up to 14 bits at
1kHz).
Analog input
The D1 Mini module has a single analog input, with an input voltage range of
0V - 3.0V. If more than 3.3V is applied, the chip could be damaged. The analog
to digital converter (ADC) has a resolution of 10 bits.
Serial
The D1 Mini module has two hardware UARTS (Serial ports):
UART0 on pins 1 and 3 (TX0 and RX0 respectively), and UART1 on pins 2 and
8 (TX1 and RX1 respectively). However, GPIO8 is used to connect the flash
chip. This means that UART1 can only transmit data. In most cases only one
UART port is more than enough.
UART0 also has hardware flow control on pins 15 and 13 (RTS0 and CTS0
respectively). These two pins can also be used as an alternative for TX0 and
RX0 pins.