-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reworked structure, updated install and readme, I think this is ready…
… to go
- Loading branch information
Thomas Preston
committed
Jun 14, 2013
1 parent
68852b6
commit b239b07
Showing
8 changed files
with
129 additions
and
49 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
File renamed without changes.
File renamed without changes.
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,86 @@ | ||
# -*- coding: utf-8 -*- | ||
"""Provides common I/O methods for interfacing with PiFace Products | ||
Copyright (C) 2013 Thomas Preston <[email protected]> | ||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <http:https://www.gnu.org/licenses/>. | ||
""" | ||
# constants | ||
from .core import ( | ||
MAX_BOARDS, | ||
IODIRA, | ||
IODIRB, | ||
IPOLA, | ||
IPOLB, | ||
GPINTENA, | ||
GPINTENB, | ||
DEFVALA, | ||
DEFVALB, | ||
INTCONA, | ||
INTCONB, | ||
IOCON, | ||
GPPUA, | ||
GPPUB, | ||
INTFA, | ||
INTFB, | ||
INTCAPA, | ||
INTCAPB, | ||
GPIOA, | ||
GPIOB, | ||
BANK_OFF, | ||
BANK_ON, | ||
INT_MIRROR_ON, | ||
INT_MIRROR_OFF, | ||
SEQOP_OFF, | ||
SEQOP_ON, | ||
DISSLW_ON, | ||
DISSLW_OFF, | ||
HAEN_ON, | ||
HAEN_OFF, | ||
ODR_ON, | ||
ODR_OFF, | ||
INTPOL_HIGH, | ||
INTPOL_LOW, | ||
IN_EVENT_DIR_ON, | ||
IN_EVENT_DIR_OFF, | ||
IN_EVENT_DIR_BOTH, | ||
) | ||
|
||
# classes | ||
from .core import ( | ||
DigitalPort, | ||
DigitalInputPort, | ||
DigitalOutputPort, | ||
DigitalItem, | ||
DigitalInputItem, | ||
DigitalOutputItem, | ||
InputFunctionMap, | ||
) | ||
|
||
# functions | ||
from .core import ( | ||
init, | ||
deinit, | ||
get_bit_mask, | ||
get_bit_num, | ||
read_bit, | ||
write_bit, | ||
read, | ||
write, | ||
spisend, | ||
sleep_microseconds, | ||
wait_for_interrupt, | ||
clear_interrupts, | ||
enable_interrupts, | ||
disable_interrupts, | ||
) |
File renamed without changes.
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 |
---|---|---|
|
@@ -9,21 +9,20 @@ | |
author='Thomas Preston', | ||
author_email='[email protected]', | ||
url='http:https://pi.cs.man.ac.uk/interface.htm', | ||
py_modules=['pifacecommon', 'asm_generic_ioctl'], | ||
long_description="""\ | ||
pifacecommon provides common classes, functions and variables to various | ||
piface related modules. | ||
""", | ||
classifiers=[ | ||
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)", | ||
"Programming Language :: Python", | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Developers", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
], | ||
keywords='piface raspberrypi openlx', | ||
license='GPLv3+', | ||
install_requires=[ | ||
'setuptools', | ||
], | ||
) | ||
packages=['pifacecommon'], | ||
long_description="pifacecommon provides common classes, functions and" | ||
"variables to various piface related modules.", | ||
classifiers=[ | ||
"License :: OSI Approved :: GNU Affero General Public License v3 or " | ||
"later (AGPLv3+)", | ||
"Programming Language :: Python", | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Developers", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
], | ||
keywords='piface raspberrypi openlx', | ||
license='GPLv3+', | ||
install_requires=[ | ||
'setuptools', | ||
], | ||
) |