light_sensor: update lib filename and fix typo
This commit is contained in:
parent
550c378e3c
commit
48015c716c
1 changed files with 2 additions and 2 deletions
|
|
@ -10,7 +10,7 @@
|
||||||
#endif
|
#endif
|
||||||
#ifdef LIGHT_SENSOR_ADAFRUIT_ADS1115
|
#ifdef LIGHT_SENSOR_ADAFRUIT_ADS1115
|
||||||
#include <Wire.h>
|
#include <Wire.h>
|
||||||
#include <Adafruit_ADS1015.h>
|
#include <Adafruit_ADS1X15.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
const struct Command light_sensor_commands[] = {
|
const struct Command light_sensor_commands[] = {
|
||||||
|
|
@ -138,7 +138,7 @@ void print_light_sensor_gain()
|
||||||
{
|
{
|
||||||
// Print the current gain value of the light sensor
|
// Print the current gain value of the light sensor
|
||||||
Serial.print(F("light sensor gain "));
|
Serial.print(F("light sensor gain "));
|
||||||
adsGain_t gain = ads.getGain() M;
|
adsGain_t gain = ads.getGain();
|
||||||
switch (gain)
|
switch (gain)
|
||||||
{
|
{
|
||||||
case GAIN_TWOTHIRDS:
|
case GAIN_TWOTHIRDS:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue