Simply3DScan
Public Member Functions | Properties | List of all members
ArduinoConnection.ArduinoConnection Class Reference

Class for detecting an arduino and sending commands to it More...

Public Member Functions

 ArduinoConnection (string portString="")
 Initializes a new instance of the ArduinoConnection class. More...
 
string FindComPort ()
 Finds the COM port used by arduino More...
 
void ActivateLaser (bool on=true)
 Activates the laser. More...
 
void ActivateLight (bool on, int hue)
 Activates the light. More...
 
void RotateTurnTableCw (int steps)
 Rotates the turn table clockwise. More...
 
void RotateTurnTableCcw (int steps)
 Rotates the turn table counter clockwise. More...
 
void RotateLaserCw (int steps)
 Rotates the laser clockwise. More...
 
void RotateLaserCcw (int steps)
 Rotates the laser counter clockwise. More...
 
void EnableMicroStepping ()
 Enables the micro stepping. More...
 
void DisableMicroStepping ()
 Disables the micro stepping. More...
 

Properties

bool PortFound [get]
 Gets a value indicating whether [port found]. More...
 
string PortString [get]
 Gets the port string. More...
 

Detailed Description

Class for detecting an arduino and sending commands to it

Constructor & Destructor Documentation

ArduinoConnection.ArduinoConnection.ArduinoConnection ( string  portString = "")

Initializes a new instance of the ArduinoConnection class.

Parameters
portStringThe port string.

Member Function Documentation

void ArduinoConnection.ArduinoConnection.ActivateLaser ( bool  on = true)

Activates the laser.

Parameters
onif set to true [on].
void ArduinoConnection.ArduinoConnection.ActivateLight ( bool  on,
int  hue 
)

Activates the light.

Parameters
onif set to true [on].
hueThe hue.
void ArduinoConnection.ArduinoConnection.DisableMicroStepping ( )

Disables the micro stepping.

void ArduinoConnection.ArduinoConnection.EnableMicroStepping ( )

Enables the micro stepping.

string ArduinoConnection.ArduinoConnection.FindComPort ( )

Finds the COM port used by arduino

  • prerequisit: sketch must run on arduino and arduino must be powered
Returns
void ArduinoConnection.ArduinoConnection.RotateLaserCcw ( int  steps)

Rotates the laser counter clockwise.

Parameters
stepsThe steps.
void ArduinoConnection.ArduinoConnection.RotateLaserCw ( int  steps)

Rotates the laser clockwise.

Parameters
stepsThe steps.
void ArduinoConnection.ArduinoConnection.RotateTurnTableCcw ( int  steps)

Rotates the turn table counter clockwise.

Parameters
stepsThe steps.
void ArduinoConnection.ArduinoConnection.RotateTurnTableCw ( int  steps)

Rotates the turn table clockwise.

Parameters
stepsThe steps.

Property Documentation

bool ArduinoConnection.ArduinoConnection.PortFound
get

Gets a value indicating whether [port found].

true if [port found]; otherwise, false.

string ArduinoConnection.ArduinoConnection.PortString
get

Gets the port string.

The port string.


The documentation for this class was generated from the following file: