AREF with Trinket M0?
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- NChronister
- Posts: 14
- Joined: Wed Aug 11, 2021 7:45 pm
AREF with Trinket M0?
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?
- mikeysklar
- Posts: 13824
- Joined: Mon Aug 01, 2016 8:10 pm
Re: AREF with Trinket M0?
Pretty much what you suggested, slight spelling difference.
Code: Select all
analogReference(AR_EXTERNAL)
https://learn.adafruit.com/adafruit-tri ... es-2677091Analog 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)
- NChronister
- Posts: 14
- Joined: Wed Aug 11, 2021 7:45 pm
Re: AREF with Trinket M0?
Thank you for your help!
Please be positive and constructive with your questions and comments.