Updated source files and new example#2
Open
dzalf wants to merge 6 commits into
Open
Conversation
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
New SetDAC example
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
Updated versions
dzalf
commented
May 20, 2020
|
|
||
| obj->supply_voltage_mV = 3300; /* Voreingestellt Versorgungsspannung (Vdd) */ | ||
| obj->external_ref_voltage_mV = 3300; /* Voreingestellte externe Referenzsspannung (Vref) */ | ||
| obj->syncPin = pinSS; |
Author
There was a problem hiding this comment.
Ah, I forgot that we can move this assignment inside the #ifdef CORE_TEENSY
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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!