Skip to content

Commit

Permalink
Update bbn_m5atomS3_lite_dlight.ino
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrouch authored Oct 6, 2024
1 parent 2d15246 commit b0e5262
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bbn_m5atomS3_lite_dlight/bbn_m5atomS3_lite_dlight.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <Arduino.h>
#include <Wire.h>
#include <M5_DLight.h>
#include "NmeaXDR.h"

M5_DLight sensor;

Expand All @@ -24,6 +25,6 @@ void setup() {

void loop() {
uint16_t lux = sensor.getLUX();
Serial.printf("lux: %d\n", lux);
gen_nmea0183_xdr("$BBXDR,X,%.1f,L,ILLU", (float)lux);
delay(1000);
}

0 comments on commit b0e5262

Please sign in to comment.