Last active
September 29, 2016 17:20
-
-
Save nseidle/ae00df84a04f3701411d9b48b3d2d31f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Initialize the Serial port | |
bool Laser::begin(Stream &serialPort) | |
{ | |
_laserSerial = &serialPort; //Grab which port the user wants us to use | |
//_laserSerial->begin(); //Stream has no .begin() so the user has to do a whateverSerial.begin(xxxx); from setup() | |
} | |
//Send a command to the laser | |
void Laser::sendCommand(String command) | |
{ | |
_laserSerial->println(command); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment