DAC Class

The official pyboard running MicroPython.
This is the reference design and main target board for MicroPython.
You can buy one at the store.
Target audience: Users with a pyboard.
Post Reply
sujoymisc@gmail.com
Posts: 4
Joined: Sat Sep 21, 2019 4:33 pm

DAC Class

Post by sujoymisc@gmail.com » Sat Sep 21, 2019 4:37 pm

In the command: DAC.write_timed(data, freq, *, mode=DAC.NORMAL)
What DAC.NORMAL and DAC.CIRCULAR means?

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: DAC Class

Post by jimmo » Sun Sep 22, 2019 2:28 am

Normal means it writes the data once. Circular means it writes it continuously in a loop in the background (until you stop it by doing a different DAC operation or calling deinit()).

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: DAC Class

Post by jimmo » Sun Sep 22, 2019 2:28 am

The names are a bit confusing, but it's what the underlying DAC peripheral in the STM32 calls it.

Post Reply