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-03-11 23:55:41 -07:00
2014-05-02 23:03:23 +01:00
2015-03-29 22:12:14 +01:00
2014-03-12 18:15:55 -07:00
2015-08-05 23:38:24 +01:00
2014-06-15 00:41:47 +01:00