23 lines
483 B
C++
23 lines
483 B
C++
#pragma once
|
|
|
|
|
|
/// <summary>
|
|
/// Connects to a PixelHub server, receives commands, and acts upon them.
|
|
/// </summmary>
|
|
class PixelBotController
|
|
{
|
|
public:
|
|
PixelBotController();
|
|
~PixelBotController();
|
|
|
|
|
|
|
|
private:
|
|
int motorLookup[8] = {B01000, B01100, B00100, B00110, B00010, B00011, B00001, B01001};
|
|
|
|
int motorSpeed = 1200; //variable to set stepper speed
|
|
int count = 0; // count of steps made
|
|
int countsperrev = 512; // number of steps per full revolution
|
|
};
|
|
|