DAC.write_timed() support?

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
User avatar
mathieu
Posts: 88
Joined: Fri Nov 10, 2017 9:57 pm

DAC.write_timed() support?

Post by mathieu » Thu May 24, 2018 10:07 am

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

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: DAC.write_timed() support?

Post by pythoncoder » Thu May 24, 2018 3:42 pm

It seems not:

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']
>>>  
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.
Peter Hinch
Index to my micropython libraries.

Post Reply