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

More colors for LED color control #122

Open
alve89 opened this issue Feb 9, 2023 · 3 comments
Open

More colors for LED color control #122

alve89 opened this issue Feb 9, 2023 · 3 comments

Comments

@alve89
Copy link

alve89 commented Feb 9, 2023

In addition to the existing LED color control I'd like to share more available colors on newer models (I'm using a R503 module). Maybe this is helpful for others, so just add the following lines after #define FINGERPRINT_LED_GRADUAL_OFF 0x06 //!< Gradually off in Adafruit_Fingerprint.h:

#define FINGERPRINT_LED_WARMWHITE 0x00  //!< warm white
#define FINGERPRINT_LED_GREEN 0x04  //!< green
#define FINGERPRINT_LED_YELLOW 0x05  //!< yellow
#define FINGERPRINT_LED_CYAN 0x06  //< cyan
#define FINGERPRINT_LED_ COLDWHITE 0x07  //< cold white

And as "issue": In line 89 of Adafruit_Fingerprint.h stands //!< Purple LEDpassword which is obviously wrong, so please just remove the password.

Have a nice day all together!

@caternuson
Copy link
Contributor

How was 0x00 for warm white determined?

image

@caternuson
Copy link
Contributor

This also may not be available on all models depending on what firmware they are running:
image

@h0t5tuff
Copy link

fixing last line in:
#define FINGERPRINT_LED_WARMWHITE 0x00 //!< warm white
#define FINGERPRINT_LED_GREEN 0x04 //!< green
#define FINGERPRINT_LED_YELLOW 0x05 //!< yellow
#define FINGERPRINT_LED_CYAN 0x06 //< cyan
#define FINGERPRINT_LED_ COLDWHITE 0x07 //< cold white
by removing an extra space, so it becomes:
#define FINGERPRINT_LED_COLDWHITE 0x07 //< cold white

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants