From d1017eddacaecec1e230ba96666bf46e55477ffa Mon Sep 17 00:00:00 2001 From: Dan Halbert Date: Tue, 22 May 2018 18:02:35 -0400 Subject: [PATCH] add __version__ and __repo__ --- adafruit_seesaw/analoginput.py | 4 +++- adafruit_seesaw/crickit.py | 3 +++ adafruit_seesaw/digitalio.py | 3 +++ adafruit_seesaw/neopixel.py | 4 +++- adafruit_seesaw/pwmout.py | 4 +++- adafruit_seesaw/samd09.py | 4 +++- adafruit_seesaw/seesaw.py | 4 ++++ 7 files changed, 22 insertions(+), 4 deletions(-) diff --git a/adafruit_seesaw/analoginput.py b/adafruit_seesaw/analoginput.py index 37e6ba6..548eadd 100644 --- a/adafruit_seesaw/analoginput.py +++ b/adafruit_seesaw/analoginput.py @@ -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 @@ -36,4 +39,3 @@ def value(self): @property def reference_voltage(self): return 3.3 - \ No newline at end of file diff --git a/adafruit_seesaw/crickit.py b/adafruit_seesaw/crickit.py index 27a79c3..278257a 100644 --- a/adafruit_seesaw/crickit.py +++ b/adafruit_seesaw/crickit.py @@ -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) diff --git a/adafruit_seesaw/digitalio.py b/adafruit_seesaw/digitalio.py index 7fa1dbe..45ccd4c 100644 --- a/adafruit_seesaw/digitalio.py +++ b/adafruit_seesaw/digitalio.py @@ -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 diff --git a/adafruit_seesaw/neopixel.py b/adafruit_seesaw/neopixel.py index be12a7e..7531bea 100644 --- a/adafruit_seesaw/neopixel.py +++ b/adafruit_seesaw/neopixel.py @@ -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) @@ -88,4 +91,3 @@ def fill(self, color): def show(self): self._seesaw.write(_NEOPIXEL_BASE, _NEOPIXEL_SHOW) - \ No newline at end of file diff --git a/adafruit_seesaw/pwmout.py b/adafruit_seesaw/pwmout.py index ad107d2..8c216b4 100644 --- a/adafruit_seesaw/pwmout.py +++ b/adafruit_seesaw/pwmout.py @@ -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): @@ -51,4 +54,3 @@ def duty_cycle(self, value): raise ValueError("Out of range") self._seesaw.analog_write(self._pin, value) self._dc = value - \ No newline at end of file diff --git a/adafruit_seesaw/samd09.py b/adafruit_seesaw/samd09.py index ed35a56..dd19627 100644 --- a/adafruit_seesaw/samd09.py +++ b/adafruit_seesaw/samd09.py @@ -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) @@ -42,4 +45,3 @@ class SAMD09_Pinmap: pwm_pins = (_PWM_0_PIN, _PWM_1_PIN, _PWM_2_PIN, _PWM_3_PIN) touch_pins = () - \ No newline at end of file diff --git a/adafruit_seesaw/seesaw.py b/adafruit_seesaw/seesaw.py index 6bf086d..9f0f7da 100644 --- a/adafruit_seesaw/seesaw.py +++ b/adafruit_seesaw/seesaw.py @@ -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)