AREF with Trinket M0?

Adafruit's tiny microcontroller platform. Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
NChronister
 
Posts: 14
Joined: Wed Aug 11, 2021 7:45 pm

AREF with Trinket M0?

Post by NChronister »

Hi. I know there is no AREF pin on the Trinket M0. If I connect my reference voltage directly to the SAMD21, can I use analogReference(EXTERNAL); with the Trinket M0?

User avatar
mikeysklar
 
Posts: 13824
Joined: Mon Aug 01, 2016 8:10 pm

Re: AREF with Trinket M0?

Post by mikeysklar »

Pretty much what you suggested, slight spelling difference.

Code: Select all

analogReference(AR_EXTERNAL)
Analog References
If you'd like to use the ARef pin for a non-3.3V analog reference, the code to use is analogReference(AR_EXTERNAL) (it's AR_EXTERNAL not EXTERNAL)
https://learn.adafruit.com/adafruit-tri ... es-2677091

User avatar
NChronister
 
Posts: 14
Joined: Wed Aug 11, 2021 7:45 pm

Re: AREF with Trinket M0?

Post by NChronister »

Thank you for your help!

Locked
Please be positive and constructive with your questions and comments.

Return to “Trinket ATTiny, Trinket M0”