Skip to content

Commit a66999f

Browse files
committed
Remove stray tabs.
1 parent d5f3b29 commit a66999f

File tree

8 files changed

+45
-45
lines changed

8 files changed

+45
-45
lines changed

M4_Eyes/file.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//34567890123456789012345678901234567890123456789012345678901234567890123456
22

3-
#define ARDUINOJSON_ENABLE_COMMENTS 1 // ARDUINOJSON_ENABLE_COMMENTS must be set to 1 before including the library.
4-
// The same value of ARDUINOJSON_ENABLE_COMMENTS must be set in each compilation unit.
5-
#include <ArduinoJson.h> // JSON config file functions
3+
#define ARDUINOJSON_ENABLE_COMMENTS 1 // ARDUINOJSON_ENABLE_COMMENTS must be set to 1 before including the library.
4+
// The same value of ARDUINOJSON_ENABLE_COMMENTS must be set in each compilation unit.
5+
#include <ArduinoJson.h> // JSON config file functions
66
#include "globals.h"
77

88
extern Adafruit_Arcada arcada;

M4_Eyes/globals.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,9 +235,9 @@ extern float screen2map(int in);
235235
extern float map2screen(int in);
236236

237237
// Functions in user.cpp
238-
#define ARDUINOJSON_ENABLE_COMMENTS 1 // ARDUINOJSON_ENABLE_COMMENTS must be set to 1 before including the library.
239-
// The same value of ARDUINOJSON_ENABLE_COMMENTS must be set in each compilation unit.
240-
#include <ArduinoJson.h> // JSON config file functions
238+
#define ARDUINOJSON_ENABLE_COMMENTS 1 // ARDUINOJSON_ENABLE_COMMENTS must be set to 1 before including the library.
239+
// The same value of ARDUINOJSON_ENABLE_COMMENTS must be set in each compilation unit.
240+
#include <ArduinoJson.h> // JSON config file functions
241241
extern void user_setup(void);
242242
extern void user_setup(StaticJsonDocument<2048> &doc);
243243
extern void user_loop(void);

M4_Eyes/user.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if 0 // Change to 0 to disable this code (must enable ONE user*.cpp only!)
1+
#if 1 // Change to 0 to disable this code (must enable ONE user*.cpp only!)
22

33
// This file provides a crude way to "drop in" user code to the eyes,
44
// allowing concurrent operations without having to maintain a bunch of
@@ -17,9 +17,9 @@ void user_setup(void) {
1717

1818
// Called once after the processing of the configuration file. This allows
1919
// user configuration to also be done based on the config file.
20-
#define ARDUINOJSON_ENABLE_COMMENTS 1 // ARDUINOJSON_ENABLE_COMMENTS must be set to 1 before including the library.
21-
// The same value of ARDUINOJSON_ENABLE_COMMENTS must be set in each compilation unit.
22-
#include <ArduinoJson.h> // JSON config file functions
20+
#define ARDUINOJSON_ENABLE_COMMENTS 1 // ARDUINOJSON_ENABLE_COMMENTS must be set to 1 before including the library.
21+
// The same value of ARDUINOJSON_ENABLE_COMMENTS must be set in each compilation unit.
22+
#include <ArduinoJson.h> // JSON config file functions
2323
void user_setup(StaticJsonDocument<2048> &doc) {
2424
}
2525

M4_Eyes/user_fizzgig.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ void user_setup(void) {
6262

6363
// Called once after the processing of the configuration file. This allows
6464
// user configuration to also be done based on the config file.
65-
#define ARDUINOJSON_ENABLE_COMMENTS 1 // ARDUINOJSON_ENABLE_COMMENTS must be set to 1 before including the library.
66-
// The same value of ARDUINOJSON_ENABLE_COMMENTS must be set in each compilation unit.
67-
#include <ArduinoJson.h> // JSON config file functions
65+
#define ARDUINOJSON_ENABLE_COMMENTS 1 // ARDUINOJSON_ENABLE_COMMENTS must be set to 1 before including the library.
66+
// The same value of ARDUINOJSON_ENABLE_COMMENTS must be set in each compilation unit.
67+
#include <ArduinoJson.h> // JSON config file functions
6868
void user_setup(StaticJsonDocument<2048> &doc) {
6969
}
7070

M4_Eyes/user_hid.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ void user_setup(void) {
4040

4141
// Called once after the processing of the configuration file. This allows
4242
// user configuration to also be done based on the config file.
43-
#define ARDUINOJSON_ENABLE_COMMENTS 1 // ARDUINOJSON_ENABLE_COMMENTS must be set to 1 before including the library.
44-
// The same value of ARDUINOJSON_ENABLE_COMMENTS must be set in each compilation unit.
45-
#include <ArduinoJson.h> // JSON config file functions
43+
#define ARDUINOJSON_ENABLE_COMMENTS 1 // ARDUINOJSON_ENABLE_COMMENTS must be set to 1 before including the library.
44+
// The same value of ARDUINOJSON_ENABLE_COMMENTS must be set in each compilation unit.
45+
#include <ArduinoJson.h> // JSON config file functions
4646
void user_setup(StaticJsonDocument<2048> &doc) {
4747
}
4848

M4_Eyes/user_neopixel.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ long firstPixelHue = 0;
1616

1717
// Called once after the processing of the configuration file. This allows
1818
// user configuration to also be done based on the config file.
19-
#define ARDUINOJSON_ENABLE_COMMENTS 1 // ARDUINOJSON_ENABLE_COMMENTS must be set to 1 before including the library.
20-
// The same value of ARDUINOJSON_ENABLE_COMMENTS must be set in each compilation unit.
21-
#include <ArduinoJson.h> // JSON config file functions
19+
#define ARDUINOJSON_ENABLE_COMMENTS 1 // ARDUINOJSON_ENABLE_COMMENTS must be set to 1 before including the library.
20+
// The same value of ARDUINOJSON_ENABLE_COMMENTS must be set in each compilation unit.
21+
#include <ArduinoJson.h> // JSON config file functions
2222
void user_setup(StaticJsonDocument<2048> &doc) {
2323
}
2424

M4_Eyes/user_touchneopixels.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,9 @@ void user_setup(void) {
247247

248248
// Called once after the processing of the configuration file. This allows
249249
// user configuration to also be done based on the config file.
250-
#define ARDUINOJSON_ENABLE_COMMENTS 1 // ARDUINOJSON_ENABLE_COMMENTS must be set to 1 before including the library.
251-
// The same value of ARDUINOJSON_ENABLE_COMMENTS must be set in each compilation unit.
252-
#include <ArduinoJson.h> // JSON config file functions
250+
#define ARDUINOJSON_ENABLE_COMMENTS 1 // ARDUINOJSON_ENABLE_COMMENTS must be set to 1 before including the library.
251+
// The same value of ARDUINOJSON_ENABLE_COMMENTS must be set in each compilation unit.
252+
#include <ArduinoJson.h> // JSON config file functions
253253
void user_setup(StaticJsonDocument<2048> &doc) {
254254
}
255255

M4_Eyes/user_wiichuck.cpp

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if 1 // Change to 0 to disable this code (must enable ONE user*.cpp only!)
1+
#if 0 // Change to 0 to disable this code (must enable ONE user*.cpp only!)
22

33
// This user loop is designed to be used with a WiiChuck for command inputs and
44
// connects to a NeoPixel strip for additional output. It was used with a unicorn
@@ -28,9 +28,9 @@
2828
// Button Z: eyes blink
2929
// BOTH buttons: eyes are both wide AND blinking, and the colors change to red
3030

31-
#define ARDUINOJSON_ENABLE_COMMENTS 1 // ARDUINOJSON_ENABLE_COMMENTS must be set to 1 before including the library.
32-
// The same value of ARDUINOJSON_ENABLE_COMMENTS must be set in each compilation unit.
33-
#include <ArduinoJson.h> // JSON config file functions
31+
#define ARDUINOJSON_ENABLE_COMMENTS 1 // ARDUINOJSON_ENABLE_COMMENTS must be set to 1 before including the library.
32+
// The same value of ARDUINOJSON_ENABLE_COMMENTS must be set in each compilation unit.
33+
#include <ArduinoJson.h> // JSON config file functions
3434
#include <WiiChuck.h>
3535
#include <Adafruit_NeoPixel.h>
3636
#include "globals.h"
@@ -64,14 +64,14 @@ void user_setup(void) {
6464
// follow the WiiAccessory.ino example:
6565
nunchuck1.begin();
6666
if(nunchuck1.type == Unknown) {
67-
/** If the device isn't auto-detected, set the type explicatly
68-
* NUNCHUCK,
69-
WIICLASSIC,
70-
GuitarHeroController,
71-
GuitarHeroWorldTourDrums,
72-
DrumController,
73-
DrawsomeTablet,
74-
Turntable
67+
/** If the device isn't auto-detected, set the type explicitly:
68+
NUNCHUCK,
69+
WIICLASSIC,
70+
GuitarHeroController,
71+
GuitarHeroWorldTourDrums,
72+
DrumController,
73+
DrawsomeTablet,
74+
Turntable
7575
*/
7676
nunchuck1.type = NUNCHUCK;
7777
}
@@ -214,19 +214,19 @@ void user_loop(void) {
214214
bool buttonZ = nunchuck1.getButtonZ();
215215

216216
if(buttonC && buttonZ) {
217-
Serial.println("buttonC & buttonZ");
218-
chaseColor = red;
217+
Serial.println("buttonC & buttonZ");
218+
chaseColor = red;
219219
if(neoPixelState == LUMINESCENT)
220-
neoPixelState = CHASE_UP;
220+
neoPixelState = CHASE_UP;
221221
} else {
222-
if(buttonC) {
223-
Serial.println("buttonC");
224-
eyesWide();
225-
neoPixelState = SPARKLE;
226-
} else if(buttonZ) {
227-
Serial.println("buttonZ");
228-
eyesBlink();
229-
}
222+
if(buttonC) {
223+
Serial.println("buttonC");
224+
eyesWide();
225+
neoPixelState = SPARKLE;
226+
} else if(buttonZ) {
227+
Serial.println("buttonZ");
228+
eyesBlink();
229+
}
230230
}
231231

232232
if(strip.numPixels() > 0) {

0 commit comments

Comments
 (0)