Selaa lähdekoodia

added commands and controllers

digital 7 vuotta sitten
vanhempi
commit
fd2975fe63
2 muutettua tiedostoa jossa 17 lisäystä ja 4 poistoa
  1. 12 2
      config/commands.yaml
  2. 5 2
      config/controllers.yaml

+ 12 - 2
config/commands.yaml

@@ -20,8 +20,18 @@ commands:
     led_2_off:
         controller: led_test_2
         function: "off"
-
-
+    dout:
+        controller: debug_ctrl
+        function: output
+    din:
+        controller: debug_ctrl
+        function: read
+    rgb_red:
+        controller: led_rgb
+        function: red
+    rgb_green:
+        controller: led_rgb
+        function: green
 
 
 

+ 5 - 2
config/controllers.yaml

@@ -9,8 +9,11 @@ controllers:
     led_test_2:
         target: digilib.pin.LED
         pin: 6
-
-
+    led_rgb:
+        target: digilib.pin.RGBLED
+        pin: [19,26]
+    debug_ctrl:
+        target: digilib.pin.DebugPinController