File tree Expand file tree Collapse file tree 3 files changed +18
-17
lines changed Expand file tree Collapse file tree 3 files changed +18
-17
lines changed Original file line number Diff line number Diff line change @@ -135,10 +135,10 @@ uint32_t availableRAM(void) {
135
135
136
136
// USER CALLABLE FUNCTIONS
137
137
138
- // Set the booped flag.
139
- void eyesWide (bool t ) {
138
+ // Force the booped flag to be set true .
139
+ void eyesWide () {
140
140
// Serial.println("eyesWide()");
141
- booped = t ;
141
+ boopSum = 99999 ;
142
142
}
143
143
144
144
// Start a blink.
Original file line number Diff line number Diff line change @@ -242,8 +242,8 @@ extern void user_setup(void);
242
242
extern void user_setup (StaticJsonDocument < 2048 > & doc );
243
243
extern void user_loop (void );
244
244
245
- // user callable functions
246
- extern void eyesWide (bool );
245
+ // User callable functions in M4_Eyes.ino
246
+ extern void eyesWide ();
247
247
extern void eyesBlink ();
248
248
extern void eyesToCorner (float x , float y , bool immediate );
249
249
extern void eyesNormal ();
Original file line number Diff line number Diff line change @@ -190,7 +190,6 @@ void user_loop(void) {
190
190
int chaseColor = 0 ;
191
191
// Serial.println("cornerXY=" + String(cornerX) + "," + String(cornerY));
192
192
if (cornerX == 1 && cornerY == 1 ) { // return to normal when the joystick is in the middle
193
- // Serial.println("eyesNormal()");
194
193
eyesNormal ();
195
194
neoPixelState = LUMINESCENT;
196
195
} else {
@@ -212,20 +211,22 @@ void user_loop(void) {
212
211
}
213
212
214
213
bool buttonC = nunchuck1.getButtonC ();
215
- eyesWide (buttonC);
216
214
bool buttonZ = nunchuck1.getButtonZ ();
217
- if (buttonZ) {
218
- Serial.println (" buttonZ" );
219
- eyesBlink ();
220
- }
221
215
222
216
if (buttonC && buttonZ) {
223
- Serial.println (" buttonC & buttonZ" );
224
- chaseColor = red;
225
- if (neoPixelState == LUMINESCENT) neoPixelState = CHASE_UP;
226
- } else if (buttonC) {
227
- Serial.println (" buttonC" );
228
- neoPixelState = SPARKLE;
217
+ Serial.println (" buttonC & buttonZ" );
218
+ chaseColor = red;
219
+ if (neoPixelState == LUMINESCENT)
220
+ neoPixelState = CHASE_UP;
221
+ } else {
222
+ if (buttonC) {
223
+ Serial.println (" buttonC" );
224
+ eyesWide ();
225
+ neoPixelState = SPARKLE;
226
+ } else if (buttonZ) {
227
+ Serial.println (" buttonZ" );
228
+ eyesBlink ();
229
+ }
229
230
}
230
231
231
232
if (strip.numPixels () > 0 ) {
You can’t perform that action at this time.
0 commit comments