Skip to content

Commit 9939f9e

Browse files
authored
Merge pull request #38 from kattni/pypi
updated travis.yml
2 parents 41a8551 + 7155224 commit 9939f9e

File tree

6 files changed

+13
-8
lines changed

6 files changed

+13
-8
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ python:
66
cache:
77
pip: true
88
deploy:
9-
provider: releases
9+
- provider: releases
1010
api_key: "$GITHUB_TOKEN"
1111
file_glob: true
1212
file: "$TRAVIS_BUILD_DIR/bundles/*"

examples/adc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
# Author: Tony DiCola
66
import time
77
import board
8+
import busio
89
import adafruit_lis3dh
910

1011

1112
# Uncomment _one_ of the hardware setups below depending on your wiring:
1213

1314
# Hardware I2C setup:
14-
import busio
1515
i2c = busio.I2C(board.SCL, board.SDA)
1616
lis3dh = adafruit_lis3dh.LIS3DH_I2C(i2c)
1717

examples/lis3dh_simpletest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@
44
# Author: Tony DiCola
55
import time
66
import board
7+
import busio
78
import adafruit_lis3dh
89

910

1011
# Uncomment _one_ of the hardware setups below depending on your wiring:
1112

1213
# Hardware I2C setup. Use the CircuitPlayground built-in accelerometer if available;
1314
# otherwise check I2C pins.
14-
import busio
15+
# pylint: disable=no-member
1516
if hasattr(board, 'ACCELEROMETER_SCL'):
1617
i2c = busio.I2C(board.ACCELEROMETER_SCL, board.ACCELEROMETER_SDA)
1718
lis3dh = adafruit_lis3dh.LIS3DH_I2C(i2c, address=0x19)

examples/spinner.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
import board
1414
import busio
1515

16+
from micropython import const
17+
1618
import adafruit_lis3dh
1719
import neopixel
1820

19-
from micropython import const
20-
2121
# Configuration:
2222
ACCEL_RANGE = adafruit_lis3dh.RANGE_16_G # Accelerometer range.
2323
TAP_THRESHOLD = 20 # Accelerometer tap threshold. Higher values
@@ -55,6 +55,7 @@ def get_position(self, delta):
5555
return self._position
5656

5757

58+
# pylint: disable=no-member
5859
# Initialize NeoPixels and accelerometer.
5960
pixels = neopixel.NeoPixel(board.NEOPIXEL, 10, auto_write=False)
6061
pixels.fill((0, 0, 0))

examples/spinner_advanced.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020
import busio
2121
import digitalio
2222

23+
from micropython import const
24+
2325
import adafruit_lis3dh
2426
import neopixel
2527

26-
from micropython import const
27-
2828
# Configuration:
2929
ACCEL_RANGE = adafruit_lis3dh.RANGE_16_G # Accelerometer range.
3030
TAP_THRESHOLD = 20 # Accelerometer tap threshold. Higher values
@@ -134,6 +134,7 @@ def update(self, position, primary, secondary):
134134
self._pixels[pos] = primary
135135
self._pixels.show()
136136

137+
137138
class SmoothAnimation:
138139

139140
def __init__(self, pixels, frequency=2.0):
@@ -162,6 +163,7 @@ def update(self, position, primary, secondary):
162163
self._pixels.show()
163164

164165

166+
# pylint: disable=no-member
165167
# Initialize and turn off NeoPixels.
166168
pixels = neopixel.NeoPixel(board.NEOPIXEL, 10, auto_write=False)
167169
pixels.fill((0, 0, 0))

examples/tap.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@
33
# Open the serial port after running to see the output printed.
44
# Author: Tony DiCola
55
import board
6-
import adafruit_lis3dh
76
import busio
87
import digitalio
8+
import adafruit_lis3dh
99

1010

1111
# Uncomment _one_ of the hardware setups below depending on your wiring:
1212

1313
# Hardware I2C setup. Use the CircuitPlayground built-in accelerometer if available;
1414
# otherwise check I2C pins.
15+
# pylint: disable=no-member
1516
if hasattr(board, 'ACCELEROMETER_SCL'):
1617
i2c = busio.I2C(board.ACCELEROMETER_SCL, board.ACCELEROMETER_SDA)
1718
int1 = digitalio.DigitalInOut(board.ACCELEROMETER_INTERRUPT)

0 commit comments

Comments
 (0)