   Serial.write(0xA5);
 }
 
-dataForController_t getControllerData(void) {
-  // prepare data
-  dataForController_t controllerData;
-
+void getControllerData(void) {
   // digital pin 21-14
   controllerData.button01 = !digitalRead(21);
   controllerData.button03 = !digitalRead(20);

*/
#include "DaytonaArduino.h"

dataForController_t controllerData = getControllerData();
byte size = sizeof(dataForController_t) - 1;

void setup() {
  setupPins();
  setupSerial();
}

void loop() {

      case 0x00:
        // 0 - controller feed
        if (val == 0) {
          getControllerData();
        }
        Serial.write(((uint8_t*)&controllerData)[val]);
        break;
