Commit Graph

22 Commits

Author SHA1 Message Date
Dave Jones
25db608dad Bump version for release 2016-04-10 21:01:41 +01:00
Dave Jones
759a6a58e6 Fix #140, fix #69, fix #185
This PR adds a software SPI implementation. Firstly this removes the
absolute necessity for spidev (#140), which also means when it's not
present things still work (effectively fixes #185), and also enables any
four pins to be used for SPI devices (which don't require the hardware
implementation).

The software implementation is simplistic but still supports clock
polarity and phase, select-high, and variable bits per word. However it
doesn't allow precise speeds to be implemented because it just wibbles
the clock as fast as it can (which being pure Python isn't actually that
fast).

Finally, because this PR involves creating a framework for "shared"
devices (like SPI devices with multiple channels), it made sense to bung
Energenie (#69) in as wells as this is a really simple shared device.
2016-04-01 12:57:17 +01:00
Dave Jones
1f2140a9f5 Work on #87
Implement a test suite, including Travis-CI integration
2016-02-11 21:11:22 +00:00
Dave Jones
b4a8273472 Bump version and update changelog for 1.1
Includes some last minute changes too
2016-02-08 23:37:13 +00:00
Dave Jones
8e0c6e243b Refactor low level implementation
This commit is a fairly major piece of work that abstracts all pin
operations (function, state, edge detection, PWM, etc.) into a base
"Pin" class which is then used by input/output/composite devices to
perform all required configuration.

The idea is to pave the way for I2C based IO extenders which can present
additional GPIO ports with similar capabilities to the Pi's "native"
GPIO ports. As a bonus it also abstracts away the reliance on the
RPi.GPIO library to allow alternative pin implementations (e.g. using
RPIO to take advantage of DMA based PWM), or even pure Python
implementations.
2016-02-08 14:54:18 +00:00
Ben Nuttall
95a595596e Beta -> Stable 2016-02-07 21:36:16 +00:00
Dave Hughes
f1299037b5 Bump versions for release 2015-11-16 12:15:39 +00:00
Ben Nuttall
492f311cc4 Remove incomplete TemperatureSensor for 1.0 release, close #93 2015-11-15 13:00:06 +00:00
Ben Nuttall
766646f772 Release v0.9.0 beta 4 2015-10-25 18:56:58 +00:00
Ben Nuttall
fcc7c47fe3 Release v0.8.0 beta 3 2015-10-16 11:40:42 +01:00
Dave Jones
c8105c8dc3 Fix #44
Implement native Debian packaging (control files are part of the source
repo) with Makefile to simplify the release procedure.
2015-10-10 15:54:08 +01:00
Ben Nuttall
17c93d1e45 Release v0.7.0 beta 2 2015-10-09 12:30:13 +01:00
Ben Nuttall
fbede611df Add MCP3008 and potentiometer example 2015-09-30 19:02:12 +01:00
Ben Nuttall
3f960f6da3 Update docstrings and add initial set of documentation 2015-09-28 11:11:00 +01:00
Ben Nuttall
cfed671972 Add docstrings, close #26 2015-09-24 11:39:50 +01:00
Ben Nuttall
4a7d60f6a3 Release v0.4.0 2015-09-23 11:20:43 +01:00
Ben Nuttall
8fe2a9d8ca Add missing comma 2015-09-22 18:23:56 +01:00
Ben Nuttall
b878905f4d Version bump 2015-09-22 18:07:32 +01:00
Ben Nuttall
65d363b7ed Tidy up 2015-09-22 17:52:19 +01:00
Ben Nuttall
1bc5a5fa92 Release v0.3.0 2015-09-22 16:34:25 +01:00
Ben Nuttall
a07f89c561 Release v0.2.0 2015-09-21 11:20:21 +01:00
Ben Nuttall
a8b93cf97f Add setup.py and distribution basics 2015-09-15 17:53:50 +01:00