![]() |
Simply3DScan
|
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... | |
Class for detecting an arduino and sending commands to it
Definition at line 12 of file ArduinoConnection.cs.
| ArduinoConnection.ArduinoConnection.ArduinoConnection | ( | string | portString = "" | ) |
Initializes a new instance of the ArduinoConnection class.
| portString | The port string. |
Definition at line 34 of file ArduinoConnection.cs.
| void ArduinoConnection.ArduinoConnection.ActivateLaser | ( | bool | on = true | ) |
Activates the laser.
| on | if set to true [on]. |
Definition at line 78 of file ArduinoConnection.cs.
| void ArduinoConnection.ArduinoConnection.ActivateLight | ( | bool | on, |
| int | hue | ||
| ) |
Activates the light.
| on | if set to true [on]. |
| hue | The hue. |
Definition at line 87 of file ArduinoConnection.cs.
| void ArduinoConnection.ArduinoConnection.DisableMicroStepping | ( | ) |
Disables the micro stepping.
Definition at line 142 of file ArduinoConnection.cs.
| void ArduinoConnection.ArduinoConnection.EnableMicroStepping | ( | ) |
Enables the micro stepping.
Definition at line 134 of file ArduinoConnection.cs.
| string ArduinoConnection.ArduinoConnection.FindComPort | ( | ) |
Finds the COM port used by arduino
Definition at line 50 of file ArduinoConnection.cs.
| void ArduinoConnection.ArduinoConnection.RotateLaserCcw | ( | int | steps | ) |
Rotates the laser counter clockwise.
| steps | The steps. |
Definition at line 126 of file ArduinoConnection.cs.
| void ArduinoConnection.ArduinoConnection.RotateLaserCw | ( | int | steps | ) |
Rotates the laser clockwise.
| steps | The steps. |
Definition at line 117 of file ArduinoConnection.cs.
| void ArduinoConnection.ArduinoConnection.RotateTurnTableCcw | ( | int | steps | ) |
Rotates the turn table counter clockwise.
| steps | The steps. |
Definition at line 108 of file ArduinoConnection.cs.
| void ArduinoConnection.ArduinoConnection.RotateTurnTableCw | ( | int | steps | ) |
Rotates the turn table clockwise.
| steps | The steps. |
Definition at line 99 of file ArduinoConnection.cs.
|
get |
Gets a value indicating whether [port found].
true if [port found]; otherwise, false.
Definition at line 21 of file ArduinoConnection.cs.
|
get |