David Estévez
/
ABBlind_hardware_test
Hardware test for ABBlind pedal shield
Revision 1:33de2dfc6e25, committed 2015-12-05
- Comitter:
- def
- Date:
- Sat Dec 05 21:15:27 2015 +0000
- Parent:
- 0:a0be5f15a662
- Commit message:
- Working hardware test
Changed in this revision
ABBlind.lib | Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r a0be5f15a662 -r 33de2dfc6e25 ABBlind.lib --- a/ABBlind.lib Sat Dec 05 20:52:50 2015 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -ABBlind#f7490f118213
diff -r a0be5f15a662 -r 33de2dfc6e25 main.cpp --- a/main.cpp Sat Dec 05 20:52:50 2015 +0000 +++ b/main.cpp Sat Dec 05 21:15:27 2015 +0000 @@ -55,7 +55,8 @@ int main() { //-- Setup button - PUSH_BUTTON.attach_asserted(&button_pressed()); + PUSH_BUTTON.attach_asserted(&button_pressed); + PUSH_BUTTON.setSampleFrequency(); //- Setup audio switch AUDIO_SWITCH = 0; @@ -82,7 +83,7 @@ LED_01[1] = 0; LED_02[1] = 0; LED_03[1] = 0; - AUDIO_SWITCH = 0; + AUDIO_SWITCH = 1; } else if (state == 2) { @@ -102,7 +103,7 @@ LED_01[1] = 1; LED_02[1] = 1; LED_03[1] = 1; - AUDIO_SWITCH = 0; + AUDIO_SWITCH = 1; } wait_ms(500);