Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Overlay file for the Motor Contol Program
- */
- /dts-v1/; // Specify the version of DTS File to be used
- /plugin/; // Specify that this is a plugin/overlay for the original device tree
- // Root of device tree overlay
- /{
- // Documentation for the user regarding the model and supported boards
- model = "STMicroelectronics STM32H743ZI-NUCLEO board";
- compatible = "st,stm32h743zi-nucleo";
- onoffmotors{
- compatible = "gpio-keys"; // If this doesn't work try nxt line
- // compatible = "gpio-leds";
- onoffmotor1: motor_1{
- label = "On Off Motor 1";
- gpios = <&gpiob 7 GPIO_ACTIVE_HIGH>; // Remapped to D0 pin in Arduino Connector DTSI file
- };
- };
- aliases{
- bimotor1 = &onoffmotor1;
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement