-
Notifications
You must be signed in to change notification settings - Fork 11
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
Thomas Preston
committed
Aug 6, 2013
1 parent
6114bf2
commit 218b55f
Showing
12 changed files
with
2,371 additions
and
88 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ makedebpkg.sh | |
_build | ||
*.log | ||
MANIFEST | ||
deb_dist | ||
|
||
# databases | ||
*.db | ||
|
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,41 +1,49 @@ | ||
pifacedigital-emulator | ||
====================== | ||
|
||
An emulator for the PiFace Digital board. Requires [pifacedigitalio](https://github.com/piface/pifacedigitalio) to be installed. | ||
An emulator for the PiFace Digital I/O board. | ||
|
||
[Screenshot](https://raw.github.com/piface/pifacedigital-emulator/master/images/pifacedigital_emulator_screenshot.png) | ||
|
||
I built the UI with | ||
[qt4-designer](http://doc.qt.digia.com/4.0/qt4-designer.html). | ||
|
||
Install | ||
======= | ||
|
||
Download, build and install: | ||
|
||
git clone https://github.com/piface/pifacedigital-emulator.git | ||
cd pifacedigital-emulator/ | ||
Download the latest debian package from | ||
[here](https://github.com/piface/pifacedigital-emulator/releases) and install with: | ||
|
||
bin/build_ui.sh | ||
$ dpkg -i python3-pifacedigital-emulator_1.2.0-1_all.deb | ||
|
||
sudo python3 setup.py install | ||
You may also need to install the latest releases of | ||
[pifacedigitalio](https://github.com/piface/pifacedigitalio/releases) and | ||
[pifacecommon](https://github.com/piface/pifacecommon/releases). | ||
|
||
Or just install straight from PyPI: | ||
Or you can install without using your package manager: | ||
|
||
sudo easy_install3 pifacedigital-emulator | ||
$ git clone https://github.com/piface/pifacedigitalio.git | ||
$ cd pifacedigitalio | ||
$ bin/build_ui.sh | ||
$ sudo python3 setup.py install | ||
|
||
Use | ||
=== | ||
To run the emulator type: | ||
|
||
$ pifacedigital-emulator | ||
|
||
To use it with Python (just like pifacedigitalio): | ||
To use it with Python (just like | ||
[pifacedigitalio](https://github.com/piface/pifacedigitalio)): | ||
|
||
$ python3 | ||
>>> import pifacedigital_emulator as emu | ||
>>> emu.init() # a window should pop up | ||
>>> emu.init() # a window should pop up | ||
>>> pifacedigital = emu.PiFaceDigital() | ||
>>> pifacedigital.leds[0].toggle() | ||
|
||
See http://piface.github.io/pifacedigitalio/example.html | ||
|
||
|
||
Development Notes | ||
================= | ||
UI built with [qt4-designer](http://doc.qt.digia.com/4.0/qt4-designer.html). | ||
To generate the UI files, run: | ||
|
||
bin/build_ui.sh |
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
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