From 06c9588b35bf07483ee2e7fd3fe147d1c42b7545 Mon Sep 17 00:00:00 2001 From: Mike C Date: Sat, 6 Apr 2013 20:44:27 -0400 Subject: [PATCH] Added some debug code --- Universal_Serial_Adapter/Universal_Serial_Adapter.ino | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Universal_Serial_Adapter/Universal_Serial_Adapter.ino b/Universal_Serial_Adapter/Universal_Serial_Adapter.ino index 2286b95..2257d8e 100644 --- a/Universal_Serial_Adapter/Universal_Serial_Adapter.ino +++ b/Universal_Serial_Adapter/Universal_Serial_Adapter.ino @@ -51,6 +51,10 @@ void setup() { void loop() { joyStickEvent = pspJoystick->direction(); if (joyStickEvent != joyNone) { + if (DEBUG) { + Serial.print("Joystick Event: "); + Serial.println(joyStickEvent); + } lcd->handleJoystickEvent(joyStickEvent); } }