Atm_Teenstep_OSC.h 812 B

123456789101112131415161718192021222324252627282930313233343536
  1. #pragma once
  2. #ifdef ATM_TEENSTEP_OSC_H
  3. #include "Atm_Teenstep.h"
  4. #include <EthernetUdp.h>
  5. #include <OSCMessage.h>
  6. #include <OSCBundle.h>
  7. class Atm_Teenstep_OSC {
  8. public:
  9. Atm_Teenstep_OSC( void ){};
  10. Atm_Teenstep_OSC& begin(Atm_Teenstep & stepperMachineRef,
  11. EthernetUDP& udpRef,
  12. OSCBundle& bndl,
  13. const char* address);
  14. Atm_Teenstep* stepperMachine ;
  15. const char* _adress = "/OSC";
  16. EthernetUDP* _udpRef ;
  17. Atm_Teenstep_OSC& onOSC(OSCMessage& msg );
  18. Atm_Teenstep_OSC& sendOSC( void );
  19. void sendPosition(int idx, int v, int up);
  20. private:
  21. // AccelStepper _motor;
  22. // Stepper *_motor; // STEP pin: 2, DIR pin: 3
  23. // StepControl _controller;
  24. OSCBundle* _bndl;
  25. };
  26. #endif