2020.04.28.01

More work on FEATURE_NEXTION_DISPLAY
      Nextion HMI file contributed by Jan ZS1VDV
This commit is contained in:
Anthony Good 2020-04-28 12:46:30 -04:00
parent 6c963806ff
commit 07123047d1
3 changed files with 32 additions and 22 deletions

View File

@ -458,6 +458,10 @@
2020.04.27.01 2020.04.27.01
New pin: pin_status_led - Status LED - blinks when there is rotation in progress New pin: pin_status_led - Status LED - blinks when there is rotation in progress
2020.04.28.01
More work on FEATURE_NEXTION_DISPLAY
Nextion HMI file contributed by Jan ZS1VDV
All library files should be placed in directories likes \sketchbook\libraries\library1\ , \sketchbook\libraries\library2\ , etc. All library files should be placed in directories likes \sketchbook\libraries\library1\ , \sketchbook\libraries\library2\ , etc.
Anything rotator_*.* should be in the ino directory! Anything rotator_*.* should be in the ino directory!
@ -468,7 +472,7 @@
*/ */
#define CODE_VERSION "2020.04.27.01" #define CODE_VERSION "2020.04.28.01"
#include <avr/pgmspace.h> #include <avr/pgmspace.h>
#include <EEPROM.h> #include <EEPROM.h>
@ -4427,11 +4431,13 @@ void service_nextion_display(){
strcat(workstring2,workstring1); strcat(workstring2,workstring1);
sendNextionCommand(workstring2); sendNextionCommand(workstring2);
// gEDS - Elevation Detailed State #if defined(FEATURE_ELEVATION_CONTROL)
dtostrf(el_state, 1, 0, workstring1); // gEDS - Elevation Detailed State
strcpy(workstring2,"gEDS="); dtostrf(el_state, 1, 0, workstring1);
strcat(workstring2,workstring1); strcpy(workstring2,"gEDS=");
sendNextionCommand(workstring2); strcat(workstring2,workstring1);
sendNextionCommand(workstring2);
#endif
// gAOS - Azimuth Overall State // gAOS - Azimuth Overall State
dtostrf((int)current_az_state, 1, 0, workstring1); dtostrf((int)current_az_state, 1, 0, workstring1);
@ -4439,11 +4445,13 @@ void service_nextion_display(){
strcat(workstring2,workstring1); strcat(workstring2,workstring1);
sendNextionCommand(workstring2); sendNextionCommand(workstring2);
// gEOS - Elevation Overall State #if defined(FEATURE_ELEVATION_CONTROL)
dtostrf((int)current_el_state, 1, 0, workstring1); // gEOS - Elevation Overall State
strcpy(workstring2,"gEOS="); dtostrf((int)current_el_state, 1, 0, workstring1);
strcat(workstring2,workstring1); strcpy(workstring2,"gEOS=");
sendNextionCommand(workstring2); strcat(workstring2,workstring1);
sendNextionCommand(workstring2);
#endif
// gCS - Clock State // gCS - Clock State
#if defined(FEATURE_CLOCK) #if defined(FEATURE_CLOCK)
@ -4474,17 +4482,19 @@ void service_nextion_display(){
break; break;
} }
switch(el_request_queue_state){ #if defined(FEATURE_ELEVATION_CONTROL)
case IN_QUEUE: switch(el_request_queue_state){
temp = temp | 32; case IN_QUEUE:
break; temp = temp | 32;
case IN_PROGRESS_TIMED: break;
temp = temp | 64; case IN_PROGRESS_TIMED:
break; temp = temp | 64;
case IN_PROGRESS_TO_TARGET: break;
temp = temp | 128; case IN_PROGRESS_TO_TARGET:
break; temp = temp | 128;
} break;
}
#endif
//zzzzzz //zzzzzz