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.
main.cpp
- Committer:
- karberga
- Date:
- 2020-02-27
- Revision:
- 4:6b89b4556930
- Parent:
- 3:a713717b8f29
- Child:
- 5:d5e5d81ae10a
File content as of revision 4:6b89b4556930:
#include "mbed.h" DigitalOut myled(LED1); int main() { while(1) { myled = 1; // LED is ON wait(0.2); // 200 ms myled = 0; // LED is What? wait(1.0); // 1 sec // Wait for button press to start test in while loop // Start a for loop for tests at different frequencies // Talk to the DCO w/ SPI // Sample the reflected signal with the ADC // Store reflected signal // Change balance impedance // Sample the reflected signal // Perform calculations on both signals // end of for loop // Display Impedance results // end of while loop } }