Support » Pololu Simple Motor Controller User’s Guide » 6. Using the Serial Interface »
6.7. Sample Code
- 6.7.1. Arduino Examples
- 6.7.2. Orangutan Examples
- 6.7.3. Cross-platform C Example
- 6.7.4. Windows C Example
- 6.7.5. Bash Script Example
- 6.7.6. CRC Computation in C
This section contains example code for controlling the Simple Motor Controller over TTL serial or over the USB virtual serial port. These examples use the Compact Protocol without CRC error detection, so they require the Simple Motor Controller to be in Binary serial mode with the CRC Mode set to Disabled. For information about the serial commands used by this sample code, refer to Section 6.2.1.