Skip to content

Commit 15415ca

Browse files
Revert changes to get examples to pass pylint. This should be fixed when the pre-commit gets updated.
1 parent 6da1add commit 15415ca

File tree

5 files changed

+4
-17
lines changed

5 files changed

+4
-17
lines changed

examples/gps_datalogging.py

-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010
# MUST carefully follow the steps in this guide to enable writes to the
1111
# internal filesystem:
1212
# https://learn.adafruit.com/adafruit-ultimate-gps-featherwing/circuitpython-library
13-
14-
# pylint: disable=duplicate-code
15-
1613
import board
1714
import busio
1815
import adafruit_gps

examples/gps_echotest.py

-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
# Simple GPS module demonstration.
55
# Will print NMEA sentences received from the GPS, great for testing connection
66
# Uses the GPS to send some commands, then reads directly from the GPS
7-
8-
# pylint: disable=duplicate-code
9-
107
import time
118
import board
129
import busio

examples/gps_satellitefix.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# SPDX-FileCopyrightText: 2021 lesamouraipourpre
22
# SPDX-License-Identifier: MIT
33

4-
# pylint: disable=duplicate-code
5-
64
import time
75
import board
86

examples/gps_simpletest.py

-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
# Simple GPS module demonstration.
55
# Will wait for a fix and print a message every second with the current location
66
# and other details.
7-
8-
# pylint: disable=duplicate-code
9-
107
import time
118
import board
129
import busio

examples/gps_time_source.py

+4-6
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,17 @@
55
# The GPS timestamps are available without a fix and keep the track of
66
# time while there is powersource (ie coin cell battery)
77

8-
# pylint: disable=duplicate-code
9-
108
import time
119
import board
1210
import busio
1311
import rtc
1412
import adafruit_gps
1513

16-
# uart = busio.UART(board.TX, board.RX, baudrate=9600, timeout=10)
17-
i2c = busio.I2C(board.SCL, board.SDA)
14+
uart = busio.UART(board.TX, board.RX, baudrate=9600, timeout=10)
15+
# i2c = busio.I2C(board.SCL, board.SDA)
1816

19-
# gps = adafruit_gps.GPS(uart, debug=False)
20-
gps = adafruit_gps.GPS_GtopI2C(i2c, debug=False) # Use I2C interface
17+
gps = adafruit_gps.GPS(uart, debug=False)
18+
# gps = adafruit_gps.GPS_GtopI2C(i2c, debug=False) # Use I2C interface
2119

2220
gps.send_command(b"PMTK314,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0")
2321
gps.send_command(b"PMTK220,1000")

0 commit comments

Comments
 (0)