Hello all,
I do:
from pyb import DAC
dac=DAC(1, bits=12)
and I get type error: function does not take keyword arguments
What do I wrong?
DAC
Re: DAC
This seems to work fine on my pyboard. Are you using a pyboard? My guess would be that your firmware is too old and needs to be updated.
Code: Select all
MicroPython v1.5.2-81-gac11e89-dirty on 2016-01-26; PYBv1.0 with STM32F405RG
Type "help()" for more information.
>>>
>>> from pyb import DAC
>>> dac = DAC(1, bits=12)
>>>