add software implementation of Button ship
[fleet.git] / 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 ==============================================================