diff options
| author | Abel Tim <git@abeltim.com> | 2025-06-12 10:28:13 +0200 |
|---|---|---|
| committer | Abel Tim <git@abeltim.com> | 2025-06-12 10:28:13 +0200 |
| commit | f6832123c23f394c3069bad6f8b19a896c705e51 (patch) | |
| tree | 03301be92270c03498778d1ae0c5bc7f7f686891 /code/main/teensy_goalie/teensy41.overlay | |
| parent | 66a1669fd97feb4d026778c486e0db58baa0c687 (diff) | |
| download | robotica-f6832123c23f394c3069bad6f8b19a896c705e51.tar.gz robotica-f6832123c23f394c3069bad6f8b19a896c705e51.zip | |
recenltly removed three commit becouse it included files that shouldn't be included.
Did reset hard,
localy unstaged commits, deleted files and recommited the good files.
think this is all i did since,
-changed extra PCB name to bave and _ instead of a space so i dont have to use ""
-added button and led to teensy41 goaly overlay
-started on PWM, not complete
Abel Tim <git@abeltim.com>
Diffstat (limited to 'code/main/teensy_goalie/teensy41.overlay')
| -rw-r--r-- | code/main/teensy_goalie/teensy41.overlay | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/code/main/teensy_goalie/teensy41.overlay b/code/main/teensy_goalie/teensy41.overlay new file mode 100644 index 0000000..3b023e3 --- /dev/null +++ b/code/main/teensy_goalie/teensy41.overlay @@ -0,0 +1,58 @@ +/* + * + * 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; + en3a = &pwm_dev0; + }; + + 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"; + }; + }; + pwmdevs { + compatible = "imx-pwm"; + pwm_dev0: pwm_dev_0 { + pwms = <&gpio2 10>; + }; + }; + +}; +&flexpwm1 { + status = "ok"; + flexpwm1_pwm0: flexpwm1_pwm0 { + status = "ok"; + }; + +}; + |
