forked fromPatrickBaus/Arduino-AD57X1
- Notifications
You must be signed in to change notification settings - Fork0
Arduino library for the Analog Devices AD5781/AD5791 18-/20-bit precision DAC
License
NotificationsYou must be signed in to change notification settings
r-map/Arduino-AD57X1
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This library is still work in progress and not all features of the DACs are supported. Basic functionality is implemented. More documentation will be added soon.
This is a simple example, to get going. Check out the more in depth examples in/examples/
#include"src/Arduino-AD57X1/src/ad57X1.h"#defineCS_AD57817AD5781ad5781(CS_AD5781, &SPI);// Use AD5791 if using the 20 bit versionvoidsetup() { ad5781.begin();// Set the pin modes SPI.begin(); ad5781.setOffsetBinaryEncoding(true);// Set the input encoding to offset binary. Default is 2s complement (false). ad5781.enableOutput();// Turn on the DAC. After startup the output will be clamped to GND and disconnected (tri-state mode) ad5781.setValue(0x3FFFF);// Set to full scale output}voidloop() {}
About
Arduino library for the Analog Devices AD5781/AD5791 18-/20-bit precision DAC
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Languages
- C++100.0%