-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
61 changed files
with
254 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
from __future__ import absolute_import | ||
|
||
# api | ||
from board import ANALOG # noqa | ||
from board import IN # noqa | ||
from board import OUT # noqa | ||
from board import PWM # noqa | ||
from board import HIGH # noqa | ||
from board import LOW # noqa | ||
from board import ModeNotSuported # noqa | ||
from board import WrongPinMode # noqa | ||
from board import PwmOutputCapable # noqa | ||
from board import AnalogInputCapable # noqa | ||
from board import Board # noqa | ||
from board import PwmPin # noqa | ||
from board import AnalogPin # noqa | ||
from board import DigitalPin # noqa | ||
from board import GroundPin # noqa | ||
from board import Pin # noqa | ||
from board import VccPin # noqa | ||
import parts # noqa | ||
from .board import State # noqa | ||
from .board import Mode # noqa | ||
from .board import ModeNotSuported # noqa | ||
from .board import WrongPinMode # noqa | ||
from .board import PwmOutputCapable # noqa | ||
from .board import AnalogInputCapable # noqa | ||
from .board import Board # noqa | ||
from .board import PwmPin # noqa | ||
from .board import AnalogPin # noqa | ||
from .board import DigitalPin # noqa | ||
from .board import GroundPin # noqa | ||
from .board import Pin # noqa | ||
from .board import VccPin # noqa | ||
import pingo.parts # import * # noqa | ||
|
||
|
||
# boards | ||
import rpi # noqa | ||
import ghost # noqa | ||
import intel # noqa | ||
import udoo # noqa | ||
import pcduino # noqa | ||
import arduino # noqa | ||
import bbb # noqa | ||
import pingo.rpi # noqa | ||
import pingo.ghost # noqa | ||
import pingo.intel # noqa | ||
import pingo.udoo # noqa | ||
import pingo.pcduino # noqa | ||
import pingo.arduino # noqa | ||
import pingo.bbb # noqa | ||
|
||
|
||
# resources | ||
import detect # noqa | ||
import test # noqa | ||
import pingo.detect # noqa | ||
import pingo.test # noqa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from firmata import ArduinoFirmata # noqa | ||
from firmata import get_arduino # noqa | ||
from pyun import YunBridge # noqa | ||
from pyun import ArduinoYun # noqa | ||
from .firmata import ArduinoFirmata # noqa | ||
from .firmata import get_arduino # noqa | ||
from .pyun import YunBridge # noqa | ||
from .pyun import ArduinoYun # noqa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
from bbb import BeagleBoneBlack # noqa | ||
from .bbb import BeagleBoneBlack # noqa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import sys | ||
|
||
PY2 = sys.version_info[0] == 2 | ||
PY3 = (sys.version_info[0] >= 3) | ||
|
||
|
||
def iteritems(obj, **kwargs): | ||
"""replacement for six's iteritems for Python2/3 compat | ||
uses 'iteritems' if available and otherwise uses 'items'. | ||
Passes kwargs to method. | ||
""" | ||
func = getattr(obj, "iteritems", None) | ||
if not func: | ||
func = obj.items | ||
return func(**kwargs) | ||
|
||
|
||
def iterkeys(obj, **kwargs): | ||
func = getattr(obj, "iterkeys", None) | ||
if not func: | ||
func = obj.keys | ||
return func(**kwargs) | ||
|
||
|
||
if PY2: | ||
from UserDict import UserDict # noqa | ||
else: | ||
from collections import UserDict # noqa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from detect import get_board | ||
from .detect import get_board | ||
|
||
|
||
def has_module(module_name): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.