Skip to content

Commit ab0bc47

Browse files
committed
super happy ci fun time
1 parent 6646259 commit ab0bc47

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ repos:
3030
name: pylint (examples code)
3131
description: Run pylint rules on "examples/*.py" files
3232
entry: /usr/bin/env bash -c
33-
args: ['([[ ! -d "examples" ]] || for example in $(find . -path "./examples/*.py"); do pylint --disable=missing-docstring,invalid-name $example; done)']
33+
args: ['([[ ! -d "examples" ]] || for example in $(find . -path "./examples/*.py"); do pylint --disable=missing-docstring,invalid-name,consider-using-f-string $example; done)']
3434
language: system

examples/ds18x20_multi.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# SPDX-FileCopyrightText: 2020 ladyada for Adafruit Industries
2+
# SPDX-License-Identifier: MIT
3+
14
# Example of specifying multiple sensors using explicit ROM codes.
25
# These ROM codes need to be determined ahead of time. Use `ow_bus.scan()`.
36
#
@@ -19,6 +22,10 @@
1922
# Initialize one-wire bus on board pin D5.
2023
ow_bus = OneWireBus(board.D5)
2124

25+
# Uncomment this to get a listing of currently attached ROMs
26+
# for device in ow_bus.scan():
27+
# print(device.rom)
28+
2229
# Use pre-determined ROM codes for each sensors
2330
temp1 = DS18X20(ow_bus, OneWireAddress(ROM1))
2431
temp2 = DS18X20(ow_bus, OneWireAddress(ROM2))

0 commit comments

Comments
 (0)