Code Library

This is a collection of code snippets curated by Geckodrive and contains pieces of code developed by our engineers and third parties. We will constantly update this with useful subroutines and full programs that will compile instantly and can be flashed to your GeckoMotion enabled device. The top of each code snippet will have a short explanation and a list of devices it has been tested with. 

If you would like to submit a piece of code to be added please email it to [email protected] and we will add it once it has been verified to work as intended.

  1. Simple Speed Control PURPOSE: Driving a motor using the onboard trimpots as a speed controller. PRODUCTS TESTED: GM215 SETUP: IN2, TRIM4 and TRIM5 Many simple motion applications require a set speed on a motor when you turn it on. This will allow you to set the speed once manually and be able to turn the motor on ...
Set Descending Direction