BaseMachine Sequencer UI Test
Dependencies: AverageAnalogIn PinDetect RotaryEncoder Sequence SequencerDisplay mbed-rtos mbed st7565LCD
Fork of CH12864F-SPI2_Test by
Revision 4:899dfeba84de, committed 2016-08-17
- Comitter:
- ryood
- Date:
- Wed Aug 17 13:13:34 2016 +0000
- Parent:
- 3:6d89fd15e299
- Commit message:
- Impl. AverageAnalogIn
Changed in this revision
AverageAnalogIn.lib | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/AverageAnalogIn.lib Wed Aug 17 13:13:34 2016 +0000 @@ -0,0 +1,1 @@ +https://developer.mbed.org/users/ryood/code/AverageAnalogIn/#abe0f7520f24
--- a/main.cpp Wed Aug 17 13:08:48 2016 +0000 +++ b/main.cpp Wed Aug 17 13:13:34 2016 +0000 @@ -13,6 +13,7 @@ #include "st7565LCD.h" #include "PinDetect.h" #include "RotaryEncoder.h" +#include "AverageAnalogIn.h" #include "Sequence.h" #include "ST7565_SequencerDisplay.h" @@ -29,14 +30,14 @@ //ST7565(PinName mosi, PinName sclk, PinName cs, PinName rst, PinName a0); ST7565 gLCD(PB_15, PB_13, PB_12, PB_2, PB_1); -AnalogIn AinPulseWidth(PC_2); -AnalogIn AinCutOff(PB_0); -AnalogIn AinResonance(PC_1); -AnalogIn AinEnvMod(PC_3); -AnalogIn AinLevel(PC_0); -AnalogIn AinDuration(PA_4); -AnalogIn AinDecay(PA_1); -AnalogIn AinSustain(PA_0); +AverageAnalogIn AinPulseWidth(PC_2); +AverageAnalogIn AinCutOff(PB_0); +AverageAnalogIn AinResonance(PC_1); +AverageAnalogIn AinEnvMod(PC_3); +AverageAnalogIn AinLevel(PC_0); +AverageAnalogIn AinDuration(PA_4); +AverageAnalogIn AinDecay(PA_1); +AverageAnalogIn AinSustain(PA_0); RotaryEncoder RotEncStep(D2, D3, 0, SEQUENCE_N - 1, 0); RotaryEncoder RotEncPitch(D4, D5, 0, PITCH_MAX, 0);