Hi everyone, in this oportunity I am using AS7265X sensor for a project, so i’m having a problem with IR LED because i tried to turn it on, but I can’t. I would really appreciate your help. thank you.
This is my code:
#include “SparkFun_AS7265X.h”
#include <Wire.h>
AS7265X sensor;
void setup() {
Serial.begin(115200);
if (!sensor.begin()) {
Serial.println("Sensor no detectado");
while (1);
}
sensor.disableIndicator();
sensor.disableBulb(AS7265x_LED_WHITE);
sensor.disableBulb(AS7265x_LED_UV);
sensor.disableBulb(AS7265x_LED_IR);
sensor.setBulbCurrent(AS7265X_LED_CURRENT_LIMIT_12_5MA, AS7265x_LED_IR);
sensor.enableBulb(AS7265x_LED_IR);
Serial.println(“LED IR activo, LED azul apagado”);
}
void loop() {
}
How do you know the LED is not on?