想把指纹上的灯关了,但指纹模块的官方文档是用十六进制完成的,arduino ide不知道如何使用
Adafruit_Fingerprint库对于led 控制函数:
但我试着用了几次,编译通过,上传后都是一样的蓝光,这样晚上太光了
- finger.LEDcontrol(FINGERPRINT_LED_OFF, 0, FINGERPRINT_LED_RED);
- finger.LEDcontrol(FINGERPRINT_LED_OFF, 0, FINGERPRINT_LED_BLUE);
-
- finger.LEDcontrol(FINGERPRINT_LED_OFF, 0, FINGERPRINT_LED_PURPLE);
-
- //flash red LED
- finger.LEDcontrol(FINGERPRINT_LED_FLASHING, 25, FINGERPRINT_LED_RED,);
- //Breathe blue LED till we say to stop
- finger.LEDcontrol(FINGERPRINT_LED_BREATHING, 100, FINGERPRINT_LED_BLUE);
- finger.LEDcontrol(FINGERPRINT_LEDOFF);
复制代码
|