Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

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.

Examples

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++100.0%

[8]ページ先頭

©2009-2025 Movatter.jp