Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Qt app changes and status led corrections #122

Merged
merged 4 commits into from
Jul 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions arduino/arduino_nRF52840/arduino_nRF52840.ino
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
#define USER_SW 4

#include <Adafruit_DotStar.h>
Adafruit_DotStar statusLED(1, 8, 6, DOTSTAR_BRG);
Adafruit_DotStar statusLED(1, 8, 6, DOTSTAR_BGR);
#elif defined(_VARIANT_FEATHER52840_)
//Adafruit feather nrf52840
#define USER_SW 7
Expand Down Expand Up @@ -90,11 +90,11 @@ void set_keyboard_led(uint8_t led_bitmap);

void updateStatusLED() {
if(flag_addDevProsStarted) {
statusLED.setPixelColor(0, 128, 128, 0); // set yellow color
statusLED.setPixelColor(0, 16, 16, 0); // set yellow color
}else if(ble_mode) {
statusLED.setPixelColor(0, 0, 0, 128); // set blue color
statusLED.setPixelColor(0, 0, 0, 16); // set blue color
} else {
statusLED.setPixelColor(0, 0, 128, 0); // set green color
statusLED.setPixelColor(0, 0, 16, 0); // set green color
}

statusLED.show();
Expand Down
Loading