Skip to content

Commit 87f6ebb

Browse files
committed
and more ci
1 parent 951dd0c commit 87f6ebb

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
uses: csexton/release-asset-action@master
5656
with:
5757
pattern: "bundles/*"
58-
github-token: ${{ secrets.GITHUB_TOKEN }}
58+
github-token: ${{ secrets.GITHUB_TOKEN }}
5959

6060
upload-pypi:
6161
runs-on: ubuntu-latest

adafruit_si1145.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858

5959
class SI1145:
6060
"""Driver for the SI1145 UV, IR, Visible Light Sensor."""
61+
6162
def __init__(self, i2c, address=SI1145_DEFAULT_ADDRESS):
6263
self._i2c = i2c_device.I2CDevice(i2c, address)
6364
dev_id, dev_rev, dev_seq = self.device_info
@@ -89,7 +90,7 @@ def als_enabled(self, enable):
8990
self._als_enabled = enable
9091

9192
@property
92-
def ALS(self):
93+
def als(self):
9394
"""A two tuple of the Ambient Light System (ALS) visible and infrared raw sensor values."""
9495
self._send_command(SI1145_CMD_ALS_FORCE)
9596
data = self._read_register(SI1145_ALS_VIS_DATA0, 4)

examples/si1145_simpletest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616

1717
# loop forever printing values
1818
while True:
19-
vis, ir = si1145.ALS
19+
vis, ir = si1145.als
2020
print("Visible = {}, Infrared = {}".format(vis, ir))
21-
time.sleep(1)
21+
time.sleep(1)

0 commit comments

Comments
 (0)