Library of hardware declarations and utility functions for the ELEC350/1 Practicals and Coursework
Dependents: Task618-mbedos-F429ZI Task621-mbedos_FZ429ZI Task622-mbedos-FZ429ZI Task632-mbedos-FZ429 ... more
Diff: sample_hardware.cpp
- Revision:
- 7:d0e445a97c60
- Parent:
- 6:d95616e645bb
- Child:
- 8:df979097cc71
--- a/sample_hardware.cpp Thu Nov 23 14:01:24 2017 +0000
+++ b/sample_hardware.cpp Wed Dec 06 15:57:58 2017 +0000
@@ -45,6 +45,7 @@
//Output the switch states (hold them down to test)
printf("SW1: %d\tSW2: %d\n\r", SW1.read(), SW2.read());
+ printf("USER: %d\n\r", onBoardSwitch.read());
//Output the ADC
printf("ADC: %f\n\r", adcIn.read());