Fix PEP8 compliance

This commit is contained in:
Craig Richardson 2018-05-15 14:56:20 +01:00
parent 766c59e898
commit a52d380bcd
2 changed files with 4 additions and 2 deletions

View file

@ -22,7 +22,8 @@ def get_voltage(pin):
return (pin.value * 3.3) / 65536
def steps(axis): # Maps the potentiometer voltage range to 0-20 in whole numbers
def steps(axis):
""" Maps the potentiometer voltage range to 0-20 """
return round((axis - pot_min) / step)

View file

@ -7,7 +7,8 @@ import board
led = adafruit_dotstar.DotStar(board.APA102_SCK, board.APA102_MOSI, 1)
# For Feather M0 Express, Metro M0 Express, Metro M4 Express and Circuit Playground Express
# For Feather M0 Express, Metro M0 Express, Metro M4 Express and Circuit
# Playground Express
# led = neopixel.NeoPixel(board.NEOPIXEL, 1)