From f2318daa6d2cf5ab992a42487253557bafb2a757 Mon Sep 17 00:00:00 2001 From: bdring Date: Mon, 2 Apr 2018 20:55:57 -0500 Subject: [PATCH] Improved web page and fixed some bugs. - JOYSTICK_DEBUG was left on...turned it off - Web page fields now have type='number' so they bring up a number keyboard - Refresh the brightness when it changes. --- TWANG32.ino | 9 +++++++-- settings.h | 1 + twang_mpu.h | 11 +++++++++++ wifi_ap.h | 24 ++++++++++++------------ 4 files changed, 31 insertions(+), 14 deletions(-) diff --git a/TWANG32.ino b/TWANG32.ino index e638d09..0197d67 100644 --- a/TWANG32.ino +++ b/TWANG32.ino @@ -107,7 +107,7 @@ RunningMedian MPUAngleSamples = RunningMedian(5); RunningMedian MPUWobbleSamples = RunningMedian(5); iSin isin = iSin(); -#define JOYSTICK_DEBUG // comment out to stop serial debugging +//#define JOYSTICK_DEBUG // comment out to stop serial debugging // POOLS #define LIFE_LEDS 3 @@ -1048,7 +1048,7 @@ void screenSaverTick(){ long mm = millis(); int mode = (mm/30000)%5; - SFXcomplete(); // turn off sound...play testing showed this to be a problem + SFXcomplete(); // turn off sound...play testing showed this to be a problem for(i = 0; i= 1){ // Random flashes + randomSeed(mm); for(i = 0; i"); - client.print("LED Count (100-1000)
"); + client.print ("' min='60' max='1000'>"); - client.print("Brightness (10-255)
"); + client.print ("' min='10' max='255'>"); - client.print("Sound Volume (0-255)
"); + client.print("' min='0' max='255'>"); - client.print("Joystick Deadzone (3-12)
"); + client.print("' min='3' max='12'>"); - client.print("Attack Sensitivity (20000-35000)
"); + client.print("' min='2000' max='35000'>"); - client.print("Lives Per Level (3-9)
"); + client.print("' min='3' max='9'>"); client.print("");