Skip to content

Commit

Permalink
Merge pull request #10 from dhalbert/version-and-repo
Browse files Browse the repository at this point in the history
add __version__ and __repo__
  • Loading branch information
tannewt authored May 22, 2018
2 parents 71f3947 + d1017ed commit 498f59b
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 4 deletions.
4 changes: 3 additions & 1 deletion adafruit_seesaw/analoginput.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
# THE SOFTWARE.
# pylint: disable=missing-docstring,invalid-name,too-many-public-methods

__version__ = "0.0.0-auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_seesaw.git"

class AnalogInput:
def __init__(self, seesaw, pin):
self._seesaw = seesaw
Expand All @@ -36,4 +39,3 @@ def value(self):
@property
def reference_voltage(self):
return 3.3

3 changes: 3 additions & 0 deletions adafruit_seesaw/crickit.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@

from micropython import const

__version__ = "0.0.0-auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_seesaw.git"

_ADC_INPUT_0_PIN_CRICKIT = const(2)
_ADC_INPUT_1_PIN_CRICKIT = const(3)
_ADC_INPUT_2_PIN_CRICKIT = const(40)
Expand Down
3 changes: 3 additions & 0 deletions adafruit_seesaw/digitalio.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@

import digitalio

__version__ = "0.0.0-auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_seesaw.git"

class DigitalIO:
def __init__(self, seesaw, pin):
self._seesaw = seesaw
Expand Down
4 changes: 3 additions & 1 deletion adafruit_seesaw/neopixel.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
import ustruct as struct
from micropython import const

__version__ = "0.0.0-auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_seesaw.git"

_NEOPIXEL_BASE = const(0x0E)

_NEOPIXEL_STATUS = const(0x00)
Expand Down Expand Up @@ -88,4 +91,3 @@ def fill(self, color):

def show(self):
self._seesaw.write(_NEOPIXEL_BASE, _NEOPIXEL_SHOW)

4 changes: 3 additions & 1 deletion adafruit_seesaw/pwmout.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
# THE SOFTWARE.
# pylint: disable=missing-docstring,invalid-name,too-many-public-methods,too-few-public-methods

__version__ = "0.0.0-auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_seesaw.git"

class PWMOut:
"""A single seesaw channel that matches the :py:class:`~pulseio.PWMOut` API."""
def __init__(self, seesaw, pin):
Expand Down Expand Up @@ -51,4 +54,3 @@ def duty_cycle(self, value):
raise ValueError("Out of range")
self._seesaw.analog_write(self._pin, value)
self._dc = value

4 changes: 3 additions & 1 deletion adafruit_seesaw/samd09.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@

from micropython import const

__version__ = "0.0.0-auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_seesaw.git"

_ADC_INPUT_0_PIN = const(0x02)
_ADC_INPUT_1_PIN = const(0x03)
_ADC_INPUT_2_PIN = const(0x04)
Expand All @@ -42,4 +45,3 @@ class SAMD09_Pinmap:
pwm_pins = (_PWM_0_PIN, _PWM_1_PIN, _PWM_2_PIN, _PWM_3_PIN)

touch_pins = ()

4 changes: 4 additions & 0 deletions adafruit_seesaw/seesaw.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@
from micropython import const
from adafruit_bus_device.i2c_device import I2CDevice

__version__ = "0.0.0-auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_seesaw.git"

_STATUS_BASE = const(0x00)

_GPIO_BASE = const(0x01)
_SERCOM0_BASE = const(0x02)

Expand Down

0 comments on commit 498f59b

Please sign in to comment.