Atm_Tstepper_OSC.h 633 B

123456789101112131415161718192021222324252627
  1. #pragma once
  2. #include "Atm_Tstepper.h"
  3. #include <EthernetUdp.h>
  4. #include <OSCMessage.h>
  5. #include <OSCBundle.h>
  6. class Atm_Tstepper_OSC {
  7. public:
  8. Atm_Tstepper_OSC( void ){};
  9. Atm_Tstepper_OSC& begin(Atm_Tstepper & stepperMachineRef, EthernetUDP& udpRef, OSCBundle& bndl, const char* address);
  10. Atm_Tstepper* stepperMachine ;
  11. const char* _adress = "/OSC";
  12. EthernetUDP* _udpRef ;
  13. Atm_Tstepper_OSC& onOSC(OSCMessage& msg );
  14. Atm_Tstepper& sendOSC( void );
  15. private:
  16. // AccelStepper _motor;
  17. // Stepper *_motor; // STEP pin: 2, DIR pin: 3
  18. // StepControl _controller;
  19. OSCBundle* _bndl;
  20. };