| @@ -102,6 +102,23 @@ int UpdatePushButtonLEDs(AVReceiverStatus_t *MainZoneStatus, AVReceiverStatus_t* | |||||
| LedMgrSetLED(AUDIO_CONSOLE_SYNC_Z2_LED,false,100,false); | LedMgrSetLED(AUDIO_CONSOLE_SYNC_Z2_LED,false,100,false); | ||||
| } | } | ||||
| if(MainZoneStatus->IsMute == true) | |||||
| { | |||||
| LedMgrSetLED(AUDIO_CONSOLE_MAIN_MUTE_LED,true,100,true); | |||||
| } | |||||
| else | |||||
| { | |||||
| LedMgrSetLED(AUDIO_CONSOLE_MAIN_MUTE_LED,false,100,false); | |||||
| } | |||||
| if(Z2Status->IsMute == true) | |||||
| { | |||||
| LedMgrSetLED(AUDIO_CONSOLE_Z2_MUTE_LED,true,100,true); | |||||
| } | |||||
| else | |||||
| { | |||||
| LedMgrSetLED(AUDIO_CONSOLE_Z2_MUTE_LED,false,100,false); | |||||
| } | |||||
| return RET_OK; | return RET_OK; | ||||
| } | } | ||||
| @@ -155,14 +172,14 @@ int TurnON(int LedID) | |||||
| AUDIO_CONSOLE_ZONE2_PWR_STATUS_LED = LED_ON; | AUDIO_CONSOLE_ZONE2_PWR_STATUS_LED = LED_ON; | ||||
| break; | break; | ||||
| } | } | ||||
| case AUDIO_CONSOLE_PUSHBTN_2_LED: | |||||
| case AUDIO_CONSOLE_MAIN_MUTE_LED: | |||||
| { | { | ||||
| PUSH_BUTTON_LED2_PIN = LED_ON; | |||||
| AUDIO_CONSOLE_MAIN_MUTE_STATUS_LED = LED_ON; | |||||
| break; | break; | ||||
| } | } | ||||
| case AUDIO_CONSOLE_PUSHBTN_3_LED: | |||||
| case AUDIO_CONSOLE_Z2_MUTE_LED: | |||||
| { | { | ||||
| PUSH_BUTTON_LED3_PIN = LED_ON; | |||||
| AUDIO_CONSOLE_Z2_MUTE_STATUS_LED = LED_ON; | |||||
| break; | break; | ||||
| } | } | ||||
| case AUDIO_CONSOLE_PUSHBTN_4_LED: | case AUDIO_CONSOLE_PUSHBTN_4_LED: | ||||
| @@ -207,14 +224,14 @@ int TurnOFF(int LedID) | |||||
| AUDIO_CONSOLE_ZONE2_PWR_STATUS_LED = LED_OFF; | AUDIO_CONSOLE_ZONE2_PWR_STATUS_LED = LED_OFF; | ||||
| break; | break; | ||||
| } | } | ||||
| case AUDIO_CONSOLE_PUSHBTN_2_LED: | |||||
| case AUDIO_CONSOLE_MAIN_MUTE_LED: | |||||
| { | { | ||||
| PUSH_BUTTON_LED2_PIN = LED_OFF; | |||||
| AUDIO_CONSOLE_MAIN_MUTE_STATUS_LED = LED_OFF; | |||||
| break; | break; | ||||
| } | } | ||||
| case AUDIO_CONSOLE_PUSHBTN_3_LED: | |||||
| case AUDIO_CONSOLE_Z2_MUTE_LED: | |||||
| { | { | ||||
| PUSH_BUTTON_LED3_PIN = LED_OFF; | |||||
| AUDIO_CONSOLE_Z2_MUTE_STATUS_LED = LED_OFF; | |||||
| break; | break; | ||||
| } | } | ||||
| case AUDIO_CONSOLE_PUSHBTN_4_LED: | case AUDIO_CONSOLE_PUSHBTN_4_LED: | ||||
| @@ -16,15 +16,17 @@ | |||||
| #define AUDIO_CONSOLE_MAIN_PWR_STATUS_LED VU1_BACKLIGHT_PIN | #define AUDIO_CONSOLE_MAIN_PWR_STATUS_LED VU1_BACKLIGHT_PIN | ||||
| #define AUDIO_CONSOLE_ZONE2_PWR_STATUS_LED VU2_BACKLIGHT_PIN | #define AUDIO_CONSOLE_ZONE2_PWR_STATUS_LED VU2_BACKLIGHT_PIN | ||||
| #define AUDIO_CONSOLE_LINK_Z2_STATUS_LED PUSH_BUTTON_LED1_PIN | |||||
| #define AUDIO_CONSOLE_LINK_Z2_STATUS_LED PUSH_BUTTON_LED3_PIN | |||||
| #define AUDIO_CONSOLE_MAIN_MUTE_STATUS_LED PUSH_BUTTON_LED1_PIN | |||||
| #define AUDIO_CONSOLE_Z2_MUTE_STATUS_LED PUSH_BUTTON_LED2_PIN | |||||
| enum eAudioConsoleLED | enum eAudioConsoleLED | ||||
| { | { | ||||
| AUDIO_CONSOLE_SYNC_Z2_LED, | AUDIO_CONSOLE_SYNC_Z2_LED, | ||||
| AUDIO_CONSOLE_MAIN_PWR_LED, //VU1 backlight | AUDIO_CONSOLE_MAIN_PWR_LED, //VU1 backlight | ||||
| AUDIO_CONSOLE_Z2_PWR_LED, //VU2 backlight | AUDIO_CONSOLE_Z2_PWR_LED, //VU2 backlight | ||||
| AUDIO_CONSOLE_PUSHBTN_2_LED, | |||||
| AUDIO_CONSOLE_PUSHBTN_3_LED, | |||||
| AUDIO_CONSOLE_MAIN_MUTE_LED, | |||||
| AUDIO_CONSOLE_Z2_MUTE_LED, | |||||
| AUDIO_CONSOLE_PUSHBTN_4_LED, | AUDIO_CONSOLE_PUSHBTN_4_LED, | ||||
| AUDIO_CONSOLE_PUSHBTN_5_LED, | AUDIO_CONSOLE_PUSHBTN_5_LED, | ||||
| AUDIO_CONSOLE_PUSHBTN_6_LED, | AUDIO_CONSOLE_PUSHBTN_6_LED, | ||||
| @@ -14,9 +14,9 @@ | |||||
| #define PUSHBTN_DEBOUNCE_TIMEOUT 50 //millisecs | #define PUSHBTN_DEBOUNCE_TIMEOUT 50 //millisecs | ||||
| #define AUDIO_CONSOLE_LINK_Z2_BTN PUSH_BUTTON_INPUT1_PIN | |||||
| #define AUDIO_CONSOLE_MAIN_PWR_BTN PUSH_BUTTON_INPUT2_PIN | |||||
| #define AUDIO_CONSOLE_Z2_PWR_BTN PUSH_BUTTON_INPUT3_PIN | |||||
| #define AUDIO_CONSOLE_LINK_Z2_BTN PUSH_BUTTON_INPUT3_PIN | |||||
| #define AUDIO_CONSOLE_MAIN_PWR_BTN PUSH_BUTTON_INPUT1_PIN | |||||
| #define AUDIO_CONSOLE_Z2_PWR_BTN PUSH_BUTTON_INPUT2_PIN | |||||
| typedef struct BtnState | typedef struct BtnState | ||||
| { | { | ||||
| @@ -1,5 +1,5 @@ | |||||
| # | # | ||||
| #Sun Feb 23 15:26:50 EST 2025 | |||||
| #Sun Mar 09 13:04:23 EDT 2025 | |||||
| ChaletDuinoV2_795F512H_.languagetoolchain.dir=C\:\\Program Files\\Microchip\\xc32\\v1.33\\bin | ChaletDuinoV2_795F512H_.languagetoolchain.dir=C\:\\Program Files\\Microchip\\xc32\\v1.33\\bin | ||||
| default.languagetoolchain.dir=C\:\\Program Files\\Microchip\\xc32\\v1.33\\bin | default.languagetoolchain.dir=C\:\\Program Files\\Microchip\\xc32\\v1.33\\bin | ||||
| proj.dir=D\:\\Main\\PicDev\\Projets\\AudioConsole\\AudioConsole.X | proj.dir=D\:\\Main\\PicDev\\Projets\\AudioConsole\\AudioConsole.X | ||||
| @@ -1,6 +1,19 @@ | |||||
| <?xml version="1.0" encoding="UTF-8"?> | <?xml version="1.0" encoding="UTF-8"?> | ||||
| <project-private xmlns="http://www.netbeans.org/ns/project-private/1"> | <project-private xmlns="http://www.netbeans.org/ns/project-private/1"> | ||||
| <editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="11"> | <editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="11"> | ||||
| <file> | |||||
| <url>Source/BootloaderInterface.c</url> | |||||
| <bookmark id="5"> | |||||
| <name/> | |||||
| <line>387</line> | |||||
| <key/> | |||||
| </bookmark> | |||||
| <bookmark id="4"> | |||||
| <name/> | |||||
| <line>437</line> | |||||
| <key/> | |||||
| </bookmark> | |||||
| </file> | |||||
| <file> | <file> | ||||
| <url>Source/hd44780.c</url> | <url>Source/hd44780.c</url> | ||||
| <bookmark id="7"> | <bookmark id="7"> | ||||
| @@ -32,35 +45,18 @@ | |||||
| <key/> | <key/> | ||||
| </bookmark> | </bookmark> | ||||
| </file> | </file> | ||||
| <file> | |||||
| <url>Source/BootloaderInterface.c</url> | |||||
| <bookmark id="5"> | |||||
| <name/> | |||||
| <line>387</line> | |||||
| <key/> | |||||
| </bookmark> | |||||
| <bookmark id="4"> | |||||
| <name/> | |||||
| <line>437</line> | |||||
| <key/> | |||||
| </bookmark> | |||||
| </file> | |||||
| </editor-bookmarks> | </editor-bookmarks> | ||||
| <open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2"> | <open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2"> | ||||
| <group> | <group> | ||||
| <file>file:/D:/Main/PicDev/Projets/AudioConsole/AudioConsole.X/Source/WiFiCtrl.c</file> | |||||
| <file>file:/D:/Main/PicDev/Projets/AudioConsole/AudioConsole.X/Source/VolumeTransducer.h</file> | |||||
| <file>file:/D:/Main/PicDev/Projets/AudioConsole/AudioConsole.X/Source/VUMeter.h</file> | |||||
| <file>file:/D:/Main/PicDev/Projets/AudioConsole/AudioConsole.X/Source/AudioConsoleInterface.c</file> | |||||
| <file>file:/D:/Main/PicDev/Projets/AudioConsole/AudioConsole.X/Source/VolumeTransducer.c</file> | |||||
| <file>file:/D:/Main/PicDev/Projets/AudioConsole/AudioConsole.X/Source/ProtocolDefs.h</file> | |||||
| <file>file:/D:/Main/PicDev/Projets/AudioConsole/AudioConsole.X/Source/WiFiCtrl.h</file> | |||||
| <file>file:/D:/Main/PicDev/Projets/AudioConsole/AudioConsole.X/Source/PushBtnMgr.c</file> | |||||
| <file>file:/D:/Main/PicDev/Projets/AudioConsole/AudioConsole.X/Source/AudioConsoleLedMgr.h</file> | |||||
| <file>file:/D:/Main/PicDev/Projets/AudioConsole/AudioConsole.X/Source/AudioConsole.c</file> | <file>file:/D:/Main/PicDev/Projets/AudioConsole/AudioConsole.X/Source/AudioConsole.c</file> | ||||
| <file>file:/D:/Main/PicDev/Projets/AudioConsole/AudioConsole.X/Source/AudioConsoleInterface.h</file> | |||||
| <file>file:/D:/Main/PicDev/Projets/AudioConsole/AudioConsole.X/Source/main.c</file> | |||||
| <file>file:/D:/Main/PicDev/Projets/AudioConsole/AudioConsole.X/Source/AudioConsole.h</file> | <file>file:/D:/Main/PicDev/Projets/AudioConsole/AudioConsole.X/Source/AudioConsole.h</file> | ||||
| <file>file:/D:/Main/PicDev/Projets/AudioConsole/AudioConsole.X/Source/NetworkProtocol.c</file> | |||||
| <file>file:/D:/Main/PicDev/Projets/AudioConsole/AudioConsole.X/Source/VUMeter.c</file> | |||||
| <file>file:/D:/Main/PicDev/Projets/AudioConsole/AudioConsole.X/Source/AudioConsoleLedMgr.c</file> | |||||
| <file>file:/D:/Main/PicDev/Projets/AudioConsole/AudioConsole.X/Source/AudioConsoleInterface.c</file> | |||||
| <file>file:/D:/Main/PicDev/Projets/AudioConsole/AudioConsole.X/Source/BoardCfg_ChaletduinoV2.h</file> | |||||
| <file>file:/D:/Main/PicDev/Projets/AudioConsole/AudioConsole.X/Source/PushBtnMgr.h</file> | |||||
| <file>file:/D:/Main/PicDev/Projets/AudioConsole/AudioConsole.X/Source/VolumeTransducer.c</file> | |||||
| </group> | </group> | ||||
| </open-files> | </open-files> | ||||
| </project-private> | </project-private> | ||||