0

Pin names for DAC0 and DAC1 on Wio Terminal
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Pin names for DAC0 and DAC1 on Wio Terminal

by dgrover on Sun Sep 19, 2021 4:37 pm

github.com/adafruit/circuitpython/blob/main/ports/atmel-samd/boards/seeeduino_wio_terminal/pins.c seems to suggest board.DAC0 and board.DAC1 would be the names for the two DACs (pins PA02 and PA05) on the Wio Terminal, a SAMD51 (M4) microcontroller. Those names are not working for me. I'd like to say something like hv_volt_set_pin = analogio.AnalogOut(DAC0). A0..A8 are assigned to analog input pins, so A0 and A1 shouldn't work, and they don't, saying that the pins don't support that function.

I'm using a customized version of circuitypython 6.1.0 (viper enabled--CIRCUITPY_ENABLE_MPY_NATIVE = 1).

Thank you!

dgrover
 
Posts: 6
Joined: Thu Feb 27, 2020 12:55 pm

Re: Pin names for DAC0 and DAC1 on Wio Terminal

by mikeysklar on Mon Sep 20, 2021 1:40 pm

The file you linked to is the current github archive for CircuitPython. Since you are running a v6.1 release the pin.c file is different.

https://github.com/adafruit/circuitpyth ... nal/pins.c

No DAC0 or DAC1 definitions.

You will need to upgrade to a current release of CircuitPython or build a custom version for yourself with an updated pin file and related dependencies.

mikeysklar
 
Posts: 5873
Joined: Mon Aug 01, 2016 8:10 pm

Re: Pin names for DAC0 and DAC1 on Wio Terminal

by dgrover on Mon Sep 20, 2021 2:54 pm

Thanks! That explains it.

I'll build a new image with the current version of the software.

dgrover
 
Posts: 6
Joined: Thu Feb 27, 2020 12:55 pm

Please be positive and constructive with your questions and comments.