projects
/
fleet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
7518c62
)
add software implementation of Button ship
author
Adam Megacz
<adam@megacz.com>
Sat, 29 Aug 2009 23:04:46 +0000
(16:04 -0700)
committer
Adam Megacz
<adam@megacz.com>
Sat, 29 Aug 2009 23:04:46 +0000
(16:04 -0700)
ships/Button.ship
patch
|
blob
|
history
diff --git
a/ships/Button.ship
b/ships/Button.ship
index
1a963eb
..
d2f670e
100644
(file)
--- a/
ships/Button.ship
+++ b/
ships/Button.ship
@@
-13,8
+13,10
@@
NET gpio_sw_c LOC="AJ6" | IOSTANDARD="LVCMOS33"; # Bank 18, Vcco=3
== TeX ==============================================================
== Fleeterpreter ====================================================
- public void service() {
- }
+public void service() {
+ if (!box_out.readyForDataFromShip()) return;
+ box_out.addDataFromShip(0);
+}
== FleetSim ==============================================================