Ein Roboter mit bürstenlosem Antrieb, differenzial und NRF24L01 Funk. Großflächig gebaut um ein großes Solarpanel aufzunehmen. https://gitlab.informatik.hs-fulda.de/fdai5253/roboter
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
337 B

  1. #pragma once
  2. #ifndef L298N_h
  3. #define L298N_h
  4. #include <Arduino.h>
  5. #define PIN_A 0x01
  6. #define PORT_A PORTB
  7. #define DDR_A DDRB
  8. #define PIN_B 128
  9. #define PORT_B PORTD
  10. #define DDR_B DDRD
  11. #define PWMA OCR1B
  12. #define PWMB OCR1A
  13. class L298N {
  14. public:
  15. L298N();
  16. setPWM_A(int16_t pwmA);
  17. setPWM_B(int16_t pwmB);
  18. //private:
  19. };
  20. #endif