Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
# Solved Conflicts:
#	SOURCES/WEBAPP/ESP32/updater/aurora.ino.esp32.bin
  • Loading branch information
dspverden committed Jul 21, 2020
2 parents a997ec1 + 7e8ce11 commit 1d34b10
Show file tree
Hide file tree
Showing 26 changed files with 56 additions and 31 deletions.
Binary file modified DOCUMENTATION/AN001 Firmware Update DE.pages
Binary file not shown.
Binary file modified DOCUMENTATION/AN001 Firmware Update DE.pdf
Binary file not shown.
Binary file modified DOCUMENTATION/AN001 Firmware Update EN.pages
Binary file not shown.
Binary file modified DOCUMENTATION/AN001 Firmware Update EN.pdf
Binary file not shown.
Binary file modified DOCUMENTATION/UserManual_DE_2.1.0.pages
Binary file not shown.
Binary file modified DOCUMENTATION/UserManual_DE_2.1.0.pdf
Binary file not shown.
Binary file modified DOCUMENTATION/UserManual_EN_2.1.0.pages
Binary file not shown.
Binary file modified DOCUMENTATION/UserManual_EN_2.1.0.pdf
Binary file not shown.
54 changes: 33 additions & 21 deletions SOURCES/WEBAPP/ESP32/aurora/aurora.ino
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,8 @@ String presetAddonCfgFile[MAX_NUM_PRESETS] = { "/addoncfg.001", "/addoncfg.002",

AsyncWebServer server( 80 );

bool changeWifiState = false;

//------------------------------------------------------------------------------
//
// Display Driver
Expand Down Expand Up @@ -4043,19 +4045,27 @@ void updateUI( void )
*/
void setup()
{
bool changeWifiState = false;

Serial.begin(115200);
Serial.println( "AURORA Debug Log" );
Serial.println( VERSION_STR );

//----------------------------------------------------------------------------
//--- Init Rotary Encoder Handling
//----------------------------------------------------------------------------
#if HAVE_ROTARYENCODER
rotaryEncoder.init();
lastREsw = rotaryEncoder.getSwitchValue();
lastREval = rotaryEncoder.getRotationValue();
#endif

//----------------------------------------------------------------------------
//--- Is user pressing the rotary encoder switch during boot?
//----------------------------------------------------------------------------
pinMode( ROTARYENCODER_PINSW, INPUT_PULLUP );
//rotaryEncoder.init();
//pinMode( ROTARYENCODER_PINSW, INPUT_PULLUP );
if( !digitalRead( ROTARYENCODER_PINSW ) )
changeWifiState = true;

//----------------------------------------------------------------------------
//--- Configure I2C
//----------------------------------------------------------------------------
Expand Down Expand Up @@ -4174,13 +4184,15 @@ void setup()
changeChannelSummationADC();
if( changeWifiState )
{
Serial.print( F("Changing WiFi status......") );
Settings.wifiOn = Settings.wifiOn ? false : true;
writeSettings();
Serial.println( F("[OK]") );
}

Serial.print( "Init user parameter......" );
Serial.print( F("Init user parameter......") );
initUserParams();
Serial.println( "[OK]" );
Serial.println( F("[OK]") );
readPluginMeta();

//----------------------------------------------------------------------------
Expand Down Expand Up @@ -4213,7 +4225,7 @@ void setup()
server.on( "/aurora.js", HTTP_GET, [](AsyncWebServerRequest *request )
{
//request->send( SPIFFS, "/aurora.js", "text/javascript" );
AsyncWebServerResponse* response = request->beginResponse(SPIFFS, "/aurora.js.gz", "text/javascript");
AsyncWebServerResponse* response = request->beginResponse(SPIFFS, "/aurora.jgz", "text/javascript");
response->addHeader( "Content-Encoding", "gzip" );
request->send( response );
});
Expand Down Expand Up @@ -4385,14 +4397,6 @@ void setup()
//----------------------------------------------------------------------------
enableVolPot();

//----------------------------------------------------------------------------
//--- Init Rotary Encoder Handling
//----------------------------------------------------------------------------
#if HAVE_ROTARYENCODER
lastREsw = rotaryEncoder.getSwitchValue();
lastREval = rotaryEncoder.getRotationValue();
#endif

//----------------------------------------------------------------------------
//--- Init IR Receiver
//----------------------------------------------------------------------------
Expand All @@ -4404,6 +4408,9 @@ void setup()

updateUI();

lastREsw = rotaryEncoder.getSwitchValue();
lastREval = rotaryEncoder.getRotationValue();

Serial.println( "Ready" );
}

Expand All @@ -4421,14 +4428,19 @@ void loop()
#if HAVE_ROTARYENCODER
if( rotaryEncoder.getSwitchValue() != lastREsw )
{
editMode++;
// we may have more then two modes in the future.
if( editMode > 1 )
editMode = 0;
delay( 300 );
if( changeWifiState )
changeWifiState = false;
else
{
editMode++;
// we may have more then two modes in the future.
if( editMode > 1 )
editMode = 0;
delay( 300 );
needUpdateUI = true;
}
lastREsw = rotaryEncoder.getSwitchValue();
lastREval = rotaryEncoder.getRotationValue();
needUpdateUI = true;
}
else if( rotaryEncoder.getRotationValue() > lastREval + 1 )
{
Expand Down
Binary file added SOURCES/WEBAPP/ESP32/aurora/aurora.ino.esp32.bin
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions SOURCES/WEBAPP/ESP32/aurora/data/dsp.html
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ <h2 id="msg">Please wait...</h2>
html = file;
if(file.name=="plugin.ini")
plugin = file;
if(file.name=="aurora.js.gz")
if(file.name=="aurora.jgz")
aurorajs = file;
}
var prg=document.getElementById('prg');
Expand All @@ -891,7 +891,7 @@ <h2 id="msg">Please wait...</h2>
return fetch("/upload?fname=plugin.ini",{method:'POST',headers:{},body:plugin});})
.then(function(response){
prg.style.width="80%";
return fetch("/upload?fname=aurora.js.gz",{method:'POST',headers:{},body:aurorajs});})
return fetch("/upload?fname=aurora.jgz",{method:'POST',headers:{},body:aurorajs});})
.then(function(response){
prg.style.width="100%";
return response;})
Expand Down
4 changes: 2 additions & 2 deletions SOURCES/WEBAPP/ESP32/aurora/fallback.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ R"!^!(
html = file;
if(file.name=="plugin.ini")
plugin = file;
if(file.name=="aurora.js.gz")
if(file.name=="aurora.jgz")
aurorajs = file;
}
var prg=document.getElementById('prg');
Expand All @@ -58,7 +58,7 @@ R"!^!(
return fetch("/upload?fname=plugin.ini",{method:'POST',headers:{},body:plugin});})
.then(function(response){
prg.style.width="80%";
return fetch("/upload?fname=aurora.js.gz",{method:'POST',headers:{},body:aurorajs});})
return fetch("/upload?fname=aurora.jgz",{method:'POST',headers:{},body:aurorajs});})
.then(function(response){
prg.style.width="100%";
return response;})
Expand Down
5 changes: 5 additions & 0 deletions SOURCES/WEBAPP/ESP32/aurora/rotaryencoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ void IRAM_ATTR isrRotaryEncoderSwitch()
}

RotaryEncoder::RotaryEncoder( void )
{

}

void RotaryEncoder::init( void )
{
value = 0;
sw = 0;
Expand Down
2 changes: 2 additions & 0 deletions SOURCES/WEBAPP/ESP32/aurora/rotaryencoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ class RotaryEncoder

void setCurrentState( uint8_t s ) { state = s; }

void init( void );

private:
long int value;
long int sw;
Expand Down
Binary file modified SOURCES/WEBAPP/ESP32/updater/aurora.ino.esp32.bin
Binary file not shown.
3 changes: 3 additions & 0 deletions SOURCES/WEBAPP/js/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Compress the javascript file with
cat aurora.js | gzip > aurora.jgz
else the WebApp won't work with Safari.
Binary file not shown.
4 changes: 2 additions & 2 deletions SOURCES/WEBAPP/plugins/4FIRs/dsp.html
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ <h2 id="msg">Please wait...</h2>
html = file;
if(file.name=="plugin.ini")
plugin = file;
if(file.name=="aurora.js.gz")
if(file.name=="aurora.jgz")
aurorajs = file;
}
var prg=document.getElementById('prg');
Expand All @@ -522,7 +522,7 @@ <h2 id="msg">Please wait...</h2>
return fetch("/upload?fname=plugin.ini",{method:'POST',headers:{},body:plugin});})
.then(function(response){
prg.style.width="80%";
return fetch("/upload?fname=aurora.js.gz",{method:'POST',headers:{},body:aurorajs});})
return fetch("/upload?fname=aurora.jgz",{method:'POST',headers:{},body:aurorajs});})
.then(function(response){
prg.style.width="100%";
return response;})
Expand Down
1 change: 1 addition & 0 deletions SOURCES/WEBAPP/plugins/4FIRs/plugin.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name":"4FIRs",
"nlp": 0,
"xohp": [],
"nhp": 0,
Expand Down
Binary file not shown.
4 changes: 2 additions & 2 deletions SOURCES/WEBAPP/plugins/8channels/dsp.html
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ <h2 id="msg">Please wait...</h2>
html = file;
if(file.name=="plugin.ini")
plugin = file;
if(file.name=="aurora.js.gz")
if(file.name=="aurora.jgz")
aurorajs = file;
}
var prg=document.getElementById('prg');
Expand All @@ -891,7 +891,7 @@ <h2 id="msg">Please wait...</h2>
return fetch("/upload?fname=plugin.ini",{method:'POST',headers:{},body:plugin});})
.then(function(response){
prg.style.width="80%";
return fetch("/upload?fname=aurora.js.gz",{method:'POST',headers:{},body:aurorajs});})
return fetch("/upload?fname=aurora.jgz",{method:'POST',headers:{},body:aurorajs});})
.then(function(response){
prg.style.width="100%";
return response;})
Expand Down
1 change: 1 addition & 0 deletions SOURCES/WEBAPP/plugins/8channels/plugin.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name":"8channels",
"nlp": 8,
"xohp": [],
"nhp": 8,
Expand Down
Binary file not shown.
4 changes: 2 additions & 2 deletions SOURCES/WEBAPP/plugins/homecinema71/dsp.html
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ <h2 id="msg">Please wait...</h2>
html = file;
if(file.name=="plugin.ini")
plugin = file;
if(file.name=="aurora.js.gz")
if(file.name=="aurora.jgz")
aurorajs = file;
}
var prg=document.getElementById('prg');
Expand All @@ -891,7 +891,7 @@ <h2 id="msg">Please wait...</h2>
return fetch("/upload?fname=plugin.ini",{method:'POST',headers:{},body:plugin});})
.then(function(response){
prg.style.width="80%";
return fetch("/upload?fname=aurora.js.gz",{method:'POST',headers:{},body:aurorajs});})
return fetch("/upload?fname=aurora.jgz",{method:'POST',headers:{},body:aurorajs});})
.then(function(response){
prg.style.width="100%";
return response;})
Expand Down
1 change: 1 addition & 0 deletions SOURCES/WEBAPP/plugins/homecinema71/plugin.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name":"HomeCinema71",
"nlp": 1,
"xohp": [
19690,
Expand Down

0 comments on commit 1d34b10

Please sign in to comment.