Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

draft: re-export symbols (classes, constants) to accessible & ergonomic locations #101

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions adafruit_ads1x15/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# SPDX-FileCopyrightText: 2018 Carter Nelson for Adafruit Industries
#
# SPDX-License-Identifier: MIT

"""
`adafruit_ads1x15`
====================================================

Support for the ADS1x15 series of analog-to-digital converters.

* Author(s): Carter Nelson
"""
from .ads1015 import ADS1015
from .ads1115 import ADS1115
from .analog_in import AnalogIn

__all__ = ["ADS1015", "ADS1115", "AnalogIn"]
10 changes: 10 additions & 0 deletions adafruit_ads1x15/ads1x15.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,16 @@
16: 0x0A00,
}

# Pins
PIN0 = 0
"""Analog Pin 0"""
PIN1 = 1
"""Analog Pin 1"""
PIN2 = 2
"""Analog Pin 2"""
PIN3 = 3
"""Analog Pin 3"""


class Mode:
"""An enum-like class representing possible ADC operating modes."""
Expand Down
Loading