Page 1 of 1
DAC
Posted: Wed Jan 27, 2016 3:29 pm
by Hansg
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?
Re: DAC
Posted: Wed Jan 27, 2016 3:38 pm
by dhylands
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)
>>>
Re: DAC
Posted: Thu Jan 28, 2016 4:07 pm
by Hansg
Thank you very much, updating from firmware did the trick.