Skip to content
Open
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
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,17 @@ This library runs on both the Raspberry Pi and BeagleBone Black. However
some classes have not yet been ported or tested on both platforms, so refer
to the table below for compatibility information.

Important - this is Gaugette version 2, which at present ONLY supports Python 3.
I have not yet tested it on the BeagleBone.
Here's the current compatibility matrix:

| Class | RPi + Python 2.7 | RPi + Python 3 | BBB + Python 2.7 | BBB + Python 3 |
|:--------------|:----------------:|:----------------:|:----------------:|:----------------:|
| CapSwitch | yes | yes | yes | no |
| RgbLed | yes | yes | no | no |
| RotaryEncoder | yes | yes | yes | no |
| SSD1306 | yes | no | yes | no |
| SSD1351 | yes | yes | ?? | ?? |
| Switch | yes | yes | yes | no |
Important - this is Gaugette version 2, which at present ONLY supports Python 3. I have not yet tested it on the BeagleBone.

Prerequisites for the Raspberry Pi
==================================
Expand Down
1 change: 0 additions & 1 deletion gaugette/capswitch.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

class CapSwitchwhich:
def __init__(self, gpio, pin):
self.gpio = gpio
Expand Down
2 changes: 1 addition & 1 deletion gaugette/gpio.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
# On the BBB, we use Adafruit_BBIO.GPIO
#
#----------------------------------------------------------------------
import gaugette
import gaugette.platform

class GPIO:
Expand Down Expand Up @@ -49,7 +50,6 @@ def __init__(self):
raise NotImplementedError("Platform is not supported.")

#----------------------------------------------------------------------

# Implement the setup call via the wiringpi API
def wiringpi_setup(self, channel, direction, pull_up_down=None):
self.gpio.pinMode(channel, direction)
Expand Down
1 change: 0 additions & 1 deletion gaugette/rgbled.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ def fade(self, red, green, blue, delay=500, step=5):
g = self.green + (green-self.green) * f
wiringpi.softPwmWrite(self.g_pin, int(g))
b = self.blue + (blue -self.blue) * f

wiringpi.softPwmWrite(self.b_pin, int(b))
wiringpi.delay(step)
self.red = red
Expand Down
1 change: 0 additions & 1 deletion gaugette/spi.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

class SPI:
def __init__(self, bus, device):

if gaugette.platform.isRaspberryPi:
import spidev
self.spi = spidev.SpiDev()
Expand Down
1 change: 1 addition & 0 deletions gaugette/ssd1306.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
import gaugette.gpio
import gaugette.spi
import gaugette.font5x8
import gaugette.platform
import time
import sys

Expand Down
Loading