add software implementation of Button ship
authorAdam Megacz <adam@megacz.com>
Sat, 29 Aug 2009 23:04:46 +0000 (16:04 -0700)
committerAdam Megacz <adam@megacz.com>
Sat, 29 Aug 2009 23:04:46 +0000 (16:04 -0700)
ships/Button.ship

index 1a963eb..d2f670e 100644 (file)
@@ -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 ==============================================================