8. Example code

8.1. Example code to run smcg2cmd in C
8.2. Example code to run smcg2cmd in Python
8.3. Example native USB code in C#, Visual C++, and VB .NET
8.4. Example serial code for Arduino
8.5. Example serial code for Orangutan
8.6. Example serial code for Linux and macOS in C
8.7. Example serial code for Windows in C
8.8. Example serial code in Python
8.9. Example serial code for Linux or macOS in Bash
8.10. Example I²C code for Arduino
8.11. Example I²C code for Linux in C
8.12. Example I²C code for Linux in Python
8.13. Example CRC computation in C

Related Products

High-Power Simple Motor Controller G2 18v15 (Connectors Soldered)
High-Power Simple Motor Controller G2 18v15
High-Power Simple Motor Controller G2 24v12 (Connectors Soldered)
High-Power Simple Motor Controller G2 24v12
High-Power Simple Motor Controller G2 18v25
High-Power Simple Motor Controller G2 24v19
Log In
Pololu Robotics & Electronics
Shopping cart
(702) 262-6648
Same-day shipping, worldwide
Menu
Shop Blog Forum Support
My account Comments or questions? About Pololu Contact Ordering information Distributors