From 980109f756f46c7b632af591d207a81ca1ac12a4 Mon Sep 17 00:00:00 2001 From: Kristian Lauszus Date: Sun, 24 Aug 2014 17:26:49 -0700 Subject: [PATCH] Disable some of the functions in PS3BT and Wii library examples so it always compile on Arduino Uno --- examples/Bluetooth/PS3BT/PS3BT.ino | 4 ++++ examples/Bluetooth/Wii/Wii.ino | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/examples/Bluetooth/PS3BT/PS3BT.ino b/examples/Bluetooth/PS3BT/PS3BT.ino index 982eb384..2878b504 100644 --- a/examples/Bluetooth/PS3BT/PS3BT.ino +++ b/examples/Bluetooth/PS3BT/PS3BT.ino @@ -118,13 +118,16 @@ void loop() { printAngle = !printAngle; } } +#if 0 // Set this to 1 in order to see the angle of the controller if (printAngle) { Serial.print(F("\r\nPitch: ")); Serial.print(PS3.getAngle(Pitch)); Serial.print(F("\tRoll: ")); Serial.print(PS3.getAngle(Roll)); } +#endif } +#if 0 // Set this to 1 in order to enable support for the Playstation Move controller else if (PS3.PS3MoveConnected) { if (PS3.getAnalogButton(T)) { Serial.print(F("\r\nT: ")); @@ -177,4 +180,5 @@ void loop() { Serial.print(PS3.getTemperature()); } } +#endif } diff --git a/examples/Bluetooth/Wii/Wii.ino b/examples/Bluetooth/Wii/Wii.ino index f4d68a62..bbd5dc03 100644 --- a/examples/Bluetooth/Wii/Wii.ino +++ b/examples/Bluetooth/Wii/Wii.ino @@ -78,6 +78,7 @@ void loop() { Serial.print(F("\r\nB")); } } +#if 0 // Set this to 1 in order to see the angle of the controllers if (printAngle) { Serial.print(F("\r\nPitch: ")); Serial.print(Wii.getPitch()); @@ -94,7 +95,9 @@ void loop() { Serial.print(Wii.getNunchuckRoll()); } } +#endif } +#if 0 // Set this to 1 if you are using a Nunchuck controller if (Wii.nunchuckConnected) { if (Wii.getButtonClick(Z)) Serial.print(F("\r\nZ")); @@ -107,4 +110,5 @@ void loop() { Serial.print(Wii.getAnalogHat(HatY)); } } +#endif }