Skip to content

Commit 4e2e9ed

Browse files
authored
update GitHub actions + examples (#18)
- update GitHub actions - update examples - minor edits
1 parent 84f9fa0 commit 4e2e9ed

File tree

19 files changed

+50
-24
lines changed

19 files changed

+50
-24
lines changed

.github/workflows/arduino-lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ jobs:
66
runs-on: ubuntu-latest
77
timeout-minutes: 5
88
steps:
9-
- uses: actions/checkout@v4
10-
- uses: arduino/arduino-lint-action@v1
9+
- uses: actions/checkout@v6
10+
- uses: arduino/arduino-lint-action@v2
1111
with:
1212
library-manager: update
1313
compliance: strict

.github/workflows/arduino_test_runner.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@ jobs:
66
runTest:
77
runs-on: ubuntu-latest
88
timeout-minutes: 20
9-
109
steps:
11-
- uses: actions/checkout@v4
10+
- uses: actions/checkout@v6
1211
- uses: ruby/setup-ruby@v1
1312
with:
1413
ruby-version: 2.6

.github/workflows/jsoncheck.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@ on:
55
paths:
66
- '**.json'
77
pull_request:
8+
paths:
9+
- '**.json'
810

911
jobs:
1012
test:
1113
runs-on: ubuntu-latest
1214
timeout-minutes: 5
1315
steps:
14-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@v6
1517
- name: json-syntax-check
1618
uses: limitusus/json-syntax-check@v2
1719
with:

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
## [0.6.2] - 2026-01-05
9+
- update GitHub actions
10+
- update examples
11+
- minor edits
812

913
## [0.6.1] - 2024-05-17
1014
- add **getCurrentDivisorRatio()**

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2010-2024 Rob Tillaart
3+
Copyright (c) 2010-2026 Rob Tillaart
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

Max44009.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//
22
// FILE: Max44009.cpp
33
// AUTHOR: Rob Tillaart
4-
// VERSION: 0.6.0
4+
// VERSION: 0.6.2
55
// DATE: 2010-??-??
66
// PURPOSE: library for MAX44009 lux sensor Arduino
77
// URL: https://github.com/RobTillaart/MAX44009

Max44009.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
// FILE: Max44009.h
44
// AUTHOR: Rob Tillaart
5-
// VERSION: 0.6.1
5+
// VERSION: 0.6.2
66
// DATE: 2010-??-??
77
// PURPOSE: library for MAX44009 lux sensor Arduino
88
// URL: https://github.com/RobTillaart/MAX44009
@@ -33,7 +33,7 @@
3333
#include "Arduino.h"
3434

3535

36-
#define MAX44009_LIB_VERSION (F("0.6.1"))
36+
#define MAX44009_LIB_VERSION (F("0.6.2"))
3737

3838
#define MAX44009_DEFAULT_ADDRESS 0x4A
3939
#define MAX44009_ALT_ADDRESS 0x4B

README.md

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
[![PlatformIO Registry](https://badges.registry.platformio.org/packages/robtillaart/library/MAX44009.svg)](https://registry.platformio.org/libraries/robtillaart/MAX44009)
1010

1111

12-
# MAX44009 I2C LUX sensor
12+
# MAX44009
1313

1414
Library for MAX44009 / GY-49 I2C lux sensor.
1515

@@ -21,17 +21,30 @@ a.k.a. GY-49
2121
The MAX44009 ambient light sensor is an I2C sensor, that has a 22 bit
2222
dynamic range from 0.045 lux to 188,000 lux.
2323

24+
Feedback as always is welcome.
2425

25-
#### MAX44007
26+
27+
### MAX44007
2628

2729
The MAX44007 is an almost identical sensor that uses a step size of 0.025.
2830
This implies that this library is not useable 1 to 1 for the MAX44007, however some parts will work.
2931

3032

31-
#### Related
33+
### Related
3234

35+
- https://en.wikipedia.org/wiki/Lux
36+
- https://github.com/RobTillaart/BH1750FVI_RT (GY-30) 16 bit I2C Lux sensor
3337
- https://github.com/RobTillaart/Max44007 (range 0.025 lux to 104,448 lux)
3438
- https://github.com/RobTillaart/Max44009 (range 0.045 lux to 188,000 lux)
39+
- https://github.com/RobTillaart/TSL235R pulse based irradiance variant.
40+
41+
UV sensors
42+
- https://github.com/RobTillaart/AnalogUVSensor
43+
- https://github.com/RobTillaart/ML8511
44+
45+
IR sensor
46+
- https://github.com/RobTillaart/TSL260R analog IR irradiance variant.
47+
3548

3649

3750
## Schema breakout max44009 / GY-49
@@ -61,7 +74,7 @@ This implies that this library is not useable 1 to 1 for the MAX44007, however s
6174

6275
## I2C
6376

64-
#### Address
77+
### Address
6578

6679
The MAX44009 can have 2 addresses:
6780

@@ -71,7 +84,7 @@ The MAX44009 can have 2 addresses:
7184
See schema above.
7285

7386

74-
#### I2C multiplexing
87+
### I2C multiplexing
7588

7689
Sometimes you need to control more devices than possible with the default
7790
address range the device provides.
@@ -89,7 +102,7 @@ too if they are behind the multiplexer.
89102
- https://github.com/RobTillaart/TCA9548
90103

91104

92-
#### I2C Performance
105+
### I2C Performance
93106

94107
Performance of the getLux function in microseconds.
95108

examples/max44009_interrupt/max44009_interrupt.ino

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ uint32_t lastDisplay = 0;
1515
void setup()
1616
{
1717
Serial.begin(115200);
18+
Serial.println();
1819
Serial.println(__FILE__);
1920
Serial.print("MAX44009_LIB_VERSION: ");
2021
Serial.println(MAX44009_LIB_VERSION);
@@ -56,11 +57,11 @@ void loop()
5657
{
5758
Serial.print("lux:\t");
5859
Serial.print(lux);
59-
if (status == 1)
60+
if (status == 1)
6061
{
6162
Serial.println("\tIRQ occurred");
6263
}
63-
else
64+
else
6465
{
6566
Serial.println();
6667
}

examples/max44009_performance/max44009_performance.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ int count = 0;
2222
void setup()
2323
{
2424
Serial.begin(115200);
25+
Serial.println();
2526
Serial.println(__FILE__);
2627
Serial.print("MAX44009_LIB_VERSION: ");
2728
Serial.println(MAX44009_LIB_VERSION);

0 commit comments

Comments
 (0)