Damien George b5c43be135 stmhal: Allow to set bits resolution for DAC; 8 is default, can have 12.
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.
2015-10-13 14:33:04 +01:00
..
2014-10-31 22:21:37 +00:00
2014-10-31 22:21:37 +00:00
2015-08-16 20:17:52 +02:00
2015-09-16 10:10:33 +02:00
2015-09-16 10:10:29 +02:00
2015-05-20 09:29:22 +01:00
2014-11-28 17:32:29 +00:00
2014-10-31 22:21:37 +00:00
2014-12-05 02:08:30 +02:00