Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated source files and new example #2

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

dzalf
Copy link

@dzalf dzalf commented May 20, 2020

Improved the compatibility of the library to be used not only on Arduino platforms but Teensy boards too. I tested this on a Teensy 3.6 boards clocked at 180 MHz

Added a new and very comprehensive example for using the library with the serial port.

Please review and comment

Cheers!

dzalf added 6 commits May 20, 2020 16:44
This is an enhanced version for Setting the Voltage of the DAC through the Serial Port.

The example code queries a channel and the desired voltage.Implemented using a state machine and failure detection.

It requires the new version for the .h and .cpp files created to improve the compatibility of the library with Arduino and Teensy platforms

Tested on Teensy 3.6
Some enhancements for improving usability of the library.

This version can be ported to Arduino and Teensy Boards. Tested on a Teensy 3.6
These new versions improve compatibility with other platforms.

The SPI definition was updated to the recommended syntaxis

obj->supply_voltage_mV = 3300; /* Voreingestellt Versorgungsspannung (Vdd) */
obj->external_ref_voltage_mV = 3300; /* Voreingestellte externe Referenzsspannung (Vref) */
obj->syncPin = pinSS;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I forgot that we can move this assignment inside the #ifdef CORE_TEENSY

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant