Skip to content

Arduino library for controlling generic Dragonframe Motion Controllers.

License

Notifications You must be signed in to change notification settings

KarolStola/DragonframeMotionController

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dragonframe Motion Controller

Arduino library for controlling generic Dragonframe Motion Controllers. It handles translating raw messages into code events as well as creating and sending appropriate responses. You still need to implement your own communication channel as well as handling of all the events.

For a complete example of implementation, please refer to https://github.com/KarolStola/DragonframeWithOpti

Please note, that the implementation currently does not support the motion blur handling. Feel free to submit the merge or feature request if you'd like it to be added.

Instalation

  1. Install prerequisite library: https://github.com/KarolStola/DelayedTasks
  2. Clone the repository to your sketchbook library location. The path can be set/viewed in File > Preferences > Settings. Put the library in the libraries folder.

Usage

  1. Implement the interface of DragonframeDevice.
  2. Create global instance of DragonframeDevice.
  3. Create global Instance of DrafonframeMotionController and pass the implemented DragonframeDevice as an argument to the constructor.
  4. Call the DragonframeMotionController::Update() function in the void loop().

Minimal Example

#include <Arduino.h>
#include <DragonframeMotionController.h>
#include "MyDragonframeDevice.h"

MyDragonframeDevice myDevice;
DragonframeMotionController motionController(myDevice);

void setup()
{
}

void loop()
{
    motionController.Update();
}

About

Arduino library for controlling generic Dragonframe Motion Controllers.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages