diff --git a/MANIFEST b/MANIFEST new file mode 100644 index 0000000..b6b3f3d --- /dev/null +++ b/MANIFEST @@ -0,0 +1,14 @@ +# file GENERATED by distutils, do NOT edit +setup.py +darkwater_escape\GPIO.py +darkwater_escape\I2C.py +darkwater_escape\PCA9685.py +darkwater_escape\Platform.py +darkwater_escape\SPI.py +darkwater_escape\__init__.py +darkwater_escape\darkwater_escape.py +darkwater_escape\mpu9250.py +darkwater_escape\smbus.py +examples\escapeimutest.py +examples\escapemotortest.py +examples\escapeservotest.py diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..a469239 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1 @@ +recursive-include examples * \ No newline at end of file diff --git a/darkwater_escape/__init__.py b/darkwater_escape/__init__.py index 4f77813..db88afd 100644 --- a/darkwater_escape/__init__.py +++ b/darkwater_escape/__init__.py @@ -1 +1,2 @@ from .darkwater_escape import dw_Motor, dw_Servo, dw_Controller +from .mpu9250 import MPU9250 \ No newline at end of file diff --git a/dist/darkwater_escape-1.0.0.zip b/dist/darkwater_escape-1.0.0.zip new file mode 100644 index 0000000..fde63e9 Binary files /dev/null and b/dist/darkwater_escape-1.0.0.zip differ diff --git a/escapeimutest.py b/examples/escapeimutest.py similarity index 97% rename from escapeimutest.py rename to examples/escapeimutest.py index 1295f0a..66c88e4 100644 --- a/escapeimutest.py +++ b/examples/escapeimutest.py @@ -29,7 +29,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. import spidev import time import sys -from darkwater_escape.mpu9250 import MPU9250 +from darkwater_640 import MPU9250 imu = MPU9250() diff --git a/escapemotortest.py b/examples/escapemotortest.py similarity index 93% rename from escapemotortest.py rename to examples/escapemotortest.py index c853669..0afa77d 100644 --- a/escapemotortest.py +++ b/examples/escapemotortest.py @@ -1,5 +1,5 @@ import time -from darkwater_escape.darkwater_escape import dw_Controller, dw_Servo, dw_Motor +from darkwater_escape import dw_Controller, dw_Motor dw = dw_Controller( addr=0x61 ) m1 = dw.getMotor(1) diff --git a/escapeservotest.py b/examples/escapeservotest.py similarity index 93% rename from escapeservotest.py rename to examples/escapeservotest.py index 406fe9a..17fd181 100644 --- a/escapeservotest.py +++ b/examples/escapeservotest.py @@ -1,5 +1,5 @@ import time -from darkwater_escape.darkwater_escape import dw_Controller, dw_Servo, dw_Motor +from darkwater_escape import dw_Controller, dw_Servo dw = dw_Controller( addr=0x61 ) s1 = dw.getServo(1) diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..aceb796 --- /dev/null +++ b/setup.py @@ -0,0 +1,11 @@ +from distutils.core import setup + +setup(name = 'darkwater_escape', + version = '1.0.0', + author = 'Team Dark Water', + author_email = 'team@darkwater.io', + description = 'Library for Dark Water escape board', + license = 'MIT', + url = 'https://github.com/darkwaterfoundation/darkwater_python_escape', + packages = ['darkwater_escape'] + )