summaryrefslogtreecommitdiff
path: root/esp/src/bh1750.cpp
blob: 196705c209a72ab578f7bdaad65d1f8cabdcb327 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <Wire.h>
#include <BH1750.h>
#include "bh1750.h"

BH1750 lightMeter;

void setupBH1750() {
  lightMeter.begin();
}

float lerBH1750() {
  return lightMeter.readLightLevel();
}