Hello,
Is DAC.write_timed() supported on ESP32 (more specifically, on the Sparkfun ESP32 Thing)?
I looked for information in the Github source for MicroPython, but didn't find anything.
Thanks,
- Mathieu
DAC.write_timed() support?
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: DAC.write_timed() support?
It seems not:
I doubt that a satisfactory implementation is possible owing to the high latency resulting from the underlying OS. It's best suited to bare-metal ports like the Pyboard.
Code: Select all
MicroPython v1.9.4-7-gaeaace07 on 2018-05-12; ESP32 module with ESP32
Type "help()" for more information.
>>>
>>> import machine
>>> p = machine.Pin(25)
>>> a = machine.DAC(p)
>>> dir(a)
['__class__', 'write']
>>>
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.