Skip to content

zzzbatmand/AD5593R_PI_cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AD5593R C++ Library for Raspberry Pi

This is a C++ Library for AD5593R on Raspberry Pi, ported directly from the library for Arduino
Based on a simmilar project for the Si5351 by wwanc
This project is compatable with the ADAC CLICK
All interfaces are the same as those in the Arduino library except for the constructor, which takes an extra parameter for the I2C device path, see below. Refer to the Arduino project for the complete reference of the interfaces.

AD5593R ad5593r("/dev/i2c-1"); //Default i2c address AD5593R_BUS_BASE_ADDR (0x10)

Or

AD5593R ad5593r("/dev/i2c-1", AD5593R_BUS_BASE_ADDR, a0); // Replace AD5593R_BUS_BASE_ADDR with correct address if it is not 0x10
                                                          // a0 is the pin to switch address, in case multiple chips are in use

A custom function "init()" has also been added, this is just so we can see if the i2c connection was opened successfully.

Compiled using:

g++ -o main main.cpp AD5593R.cpp -lwiringPi

About

AD5593R C++ Library for Raspberry Pi

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages