mirror of
https://github.com/licsber/micropython.git
synced 2024-09-20 09:00:23 +08:00
b5c43be135
This patch allows to configure the DAC resolution in the constructor and in the init function, eg: dac = DAC(1, bits=12). The default resolution is 8 bits for backwards compatibility. The bits sets the maximum value accepted by write and write_timed methods, being 2**bits - 1. When using write_timed with 12-bit resolution, the input buffer is treated as an unsigned half-word array, typecode 'H'. See PR #1130 for discussion. |
||
---|---|---|
.. | ||
library | ||
pyboard | ||
readthedocs/settings | ||
reference | ||
static | ||
templates | ||
wipy | ||
conf.py | ||
esp8266_contents.rst | ||
esp8266_index.rst | ||
license.rst | ||
make.bat | ||
Makefile | ||
pyboard_contents.rst | ||
pyboard_index.rst | ||
topindex.html | ||
wipy_contents.rst | ||
wipy_index.rst |