Skip to content

Commit

Permalink
NEOPIXEL_INVERT_RG
Browse files Browse the repository at this point in the history
  • Loading branch information
bill88t committed Oct 1, 2024
1 parent d5e78d7 commit 9ce4c57
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,20 @@ static bool check_dfu_mode(void) {

// Invoked when device is plugged and configured
void tud_mount_cb(void) {
#ifdef NEOPIXEL_INVERT_RG
indicator_set(STATE_USB_UNPLUGGED);
#else
indicator_set(STATE_USB_PLUGGED);
#endif
}

// Invoked when device is unplugged
void tud_umount_cb(void) {
#ifdef NEOPIXEL_INVERT_RG
indicator_set(STATE_USB_PLUGGED);
#else
indicator_set(STATE_USB_UNPLUGGED);
#endif
}

//--------------------------------------------------------------------+
Expand Down

0 comments on commit 9ce4c57

Please sign in to comment.