summaryrefslogtreecommitdiff
path: root/code/main/teensy_goalie/teensy41.overlay
blob: 96707e80ca8f52f479172681eb2d8e98290880bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
 *
 * This is the overlay  device tree file for the teensy 4.1 in the robosoccer mendelcollege robot.
 *
 * For more information on overlay files see
 * https://docs.zephyrproject.org/latest/build/dts/howtos.html#set-devicetree-overlays
 * https://www.digikey.be/en/maker/tutorials/2025/introduction-to-zephyr-part-4-devicetree-tutorial
 *
 */

/ {
    aliases {
        powerswitch = &soft_power_switch;
        redled = &red_led;
        greenled = &green_led;
        bueled = &blue_led;

    };

    buttons {
        compatible = "gpio-keys";
        debounce-interval-ms = <50>;
        polling-mode;

        soft_power_switch: d5 {
            gpios = <&gpio4 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
        };
    };
    leds {
        compatible = "gpio-leds";
        red_led: red-led {
            gpios = <&gpio2 29 GPIO_ACTIVE_HIGH>;
            label = "LED Pin 34 --> RED";
        };
        green_led: green-led {
            gpios = <&gpio2 7 GPIO_ACTIVE_HIGH>;
            label = "LED Pin 33 --> GREEN";
        };
        blue_led: blue-led {
            gpios = <&gpio1 23 GPIO_ACTIVE_HIGH>;
            label = "LED Pin 16 --> BLUE";
        };
    };
    flexpwm{
          compatible = "nxp,flexio-pwm";
          test: blue-test {
              label = "GPIO4_5 --> PIN3 --> Driver";
          };
    };
};