Advertisement
ManU_47

nucleo_h743zi.overlay

Apr 26th, 2021
516
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. /*
  2. Overlay file for the Motor Contol Program
  3. */
  4.  
  5. /dts-v1/; // Specify the version of DTS File to be used
  6. /plugin/; // Specify that this is a plugin/overlay for the original device tree
  7.  
  8. // Root of device tree overlay
  9. /{
  10. // Documentation for the user regarding the model and supported boards
  11. model = "STMicroelectronics STM32H743ZI-NUCLEO board";
  12. compatible = "st,stm32h743zi-nucleo";
  13.  
  14. onoffmotors{
  15. compatible = "gpio-keys"; // If this doesn't work try nxt line
  16. // compatible = "gpio-leds";
  17.  
  18. onoffmotor1: motor_1{
  19. label = "On Off Motor 1";
  20. gpios = <&gpiob 7 GPIO_ACTIVE_HIGH>; // Remapped to D0 pin in Arduino Connector DTSI file
  21. };
  22.  
  23. };
  24.  
  25. aliases{
  26. bimotor1 = &onoffmotor1;
  27. };
  28.  
  29. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement