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.
Dependencies: mbed TrapezoidControl QEI
Diff: Input/Potentiometer/Potentiometer.cpp
- Revision:
- 31:45f97698857b
- Parent:
- 16:3f2c2d89372b
- Child:
- 43:677f7446612e
--- a/Input/Potentiometer/Potentiometer.cpp Fri Sep 20 02:47:02 2019 +0000
+++ b/Input/Potentiometer/Potentiometer.cpp Sat Sep 21 04:28:31 2019 +0000
@@ -2,12 +2,12 @@
#include "mbed.h"
namespace POTENTIOMETER {
- AnalogIn adc[] = {
- AnalogIn(ADC0_PIN),
- AnalogIn(ADC1_PIN),
- AnalogIn(ADC2_PIN),
- AnalogIn(ADC3_PIN),
- AnalogIn(ADC4_PIN),
+ DigitalOut dio[]= {
+ DigitalOut(ADC0_PIN),
+ DigitalOut(ADC1_PIN),
+ DigitalOut(ADC2_PIN),
+ DigitalOut(ADC3_PIN),
+ DigitalOut(ADC4_PIN),
};
}