Test program for BaseMachineUIController Library

Dependencies:   AverageAnalogIn BaseMachineUIController ExioBufferdController MCP23S17 PinDetect RotaryEncoder Sequence SequencerDisplay mbed-rtos mbed st7567LCD AT24C1024

Revision:
5:7f49c9ca7c04
Parent:
4:f79bf2806617
Child:
6:e104230b642c
--- a/main.cpp	Wed Nov 09 09:08:33 2016 +0000
+++ b/main.cpp	Wed Nov 09 10:29:34 2016 +0000
@@ -11,7 +11,7 @@
 #include "mbed.h"
 #include "rtos.h"
 
-#define UART_TRACE  (1)
+#define UART_TRACE  (0)
 #include "BaseMachineUIController.h"
 #include "ExioInBuffer.h"
 #include "ExioBufferedDebounceIn.h"
@@ -65,7 +65,7 @@
     // Reset MCP23S17 (初期化時にreset()が必要)
     Exio.reset();
  
-    ExioInBuffer exioInBufferA(&Exio, ExioPortA);
+    //ExioInBuffer exioInBufferA(&Exio, ExioPortA);
     ExioInBuffer exioInBufferB(&Exio, ExioPortB);
   
     ExioBufferedDebounceIn inB[] = {
@@ -79,7 +79,7 @@
         ExioBufferedDebounceIn(&exioInBufferB, 7)
     };
     
-    exioInBufferA.run(10);
+    //exioInBufferA.run(10);
     exioInBufferB.run(10);
     for (int i = 0; i < 8; i++) {
         inB[i].set_debounce_us(10000);
@@ -111,7 +111,7 @@
         
         int accentLevel = UIController.getAccentLevel();
         
-        uint8_t va = exioInBufferA.readPort();
+        //uint8_t va = exioInBufferA.readPort();
         
         #if (UART_TRACE)
         printf("%d %d ", osc.waveShape, osc.pulseWidth); 
@@ -128,12 +128,12 @@
                 (sequences[i].getFrequency10()) >> 16
             );
         }
-        printf("Exio PortA: %d\r\n", va);
+        #endif
+        //printf("Exio PortA: %d\r\n", va);
         for (int i = 0; i < 8; i++) {
             int vb = inB[i].read();
             printf("%d ", vb);
         }
         printf("\r\n");
-        #endif
     }
 }