Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
For additional information check out the mbed page of the Analog Devices wiki: https://wiki.analog.com/resources/tools-software/mbed-drivers-all
main.cpp@0:01e942c09c17, 2016-05-03 (annotated)
- Committer:
- adisuciu
- Date:
- Tue May 03 14:15:25 2016 +0000
- Revision:
- 0:01e942c09c17
- Child:
- 1:68f1c45d6017
Initial revision
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| adisuciu | 0:01e942c09c17 | 1 | #include "mbed.h" |
| adisuciu | 0:01e942c09c17 | 2 | #include "AD5270.h" |
| adisuciu | 0:01e942c09c17 | 3 | |
| adisuciu | 0:01e942c09c17 | 4 | Serial pc(USBTX, USBRX); ///< Serial interface to the pc |
| adisuciu | 0:01e942c09c17 | 5 | |
| adisuciu | 0:01e942c09c17 | 6 | AD5270 ad5270(D6,20000); // set chipselect and ad5270 max resistance |
| adisuciu | 0:01e942c09c17 | 7 | |
| adisuciu | 0:01e942c09c17 | 8 | int main() { |
| adisuciu | 0:01e942c09c17 | 9 | |
| adisuciu | 0:01e942c09c17 | 10 | pc.printf("Current value of the AD5270 is %f", ad5270.read_RDAC ()); |
| adisuciu | 0:01e942c09c17 | 11 | while(1); |
| adisuciu | 0:01e942c09c17 | 12 | |
| adisuciu | 0:01e942c09c17 | 13 | } |
Analog Devices AD5270