Skip to content

Commit 233ae72

Browse files
committed
converted to library format
1 parent 20df1f2 commit 233ae72

File tree

9 files changed

+28
-844
lines changed

9 files changed

+28
-844
lines changed

ADS1115/ADS1115.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
#!/usr/bin/python3
2-
31
import time
42
import smbus
53
from I2C import Adafruit_I2C
64

5+
__all__ = ['ADS1115']
6+
77
# ===========================================================================
88
# ADS1115 Class
99
# ===========================================================================

ADS1115/__init__.py

Whitespace-only changes.

ADS1115/ads1x15_ex_singleended.py

Lines changed: 0 additions & 20 deletions
This file was deleted.

Adafruit_ADS1x15/Adafruit_ADS1x15.py

Lines changed: 0 additions & 721 deletions
This file was deleted.

Adafruit_ADS1x15/Adafruit_I2C.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

Adafruit_ADS1x15/ads1x15_ex_comparator.py

Lines changed: 0 additions & 30 deletions
This file was deleted.

Adafruit_ADS1x15/ads1x15_ex_differential.py

Lines changed: 0 additions & 27 deletions
This file was deleted.

Adafruit_ADS1x15/ads1x15_ex_singleended.py

Lines changed: 0 additions & 43 deletions
This file was deleted.

setup.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
'''
2+
Python library for the ADS1115 Analog to Digital Converter
3+
Adapted by David H Hagan from Adafruit
4+
March 2015
5+
Contact: david@davidhhagan.com
6+
'''
7+
8+
try:
9+
from setuptools import setup
10+
except ImportError:
11+
from distutils.core import setup
12+
13+
setup(name='ADS1115',
14+
version='0.1.0',
15+
description='Python library for interacting with the ADS1115 Analog to Digital Converter.',
16+
url='http://github.com/dhhagan/Adafruit-Raspberry-Pi-Python-Code',
17+
author='David H Hagan',
18+
author_email='david@davidhhagan.com',
19+
license='MIT',
20+
keywords=['ADS1115', 'analog to digital converter', 'adc'],
21+
packages=['ADS1115',
22+
],
23+
install_requires=[
24+
'python-smbus'
25+
],
26+
zip_safe=False)

0 commit comments

Comments
 (0)