Skip to content
This repository was archived by the owner on Aug 28, 2021. It is now read-only.

API Documentation

GGorAA edited this page Sep 28, 2020 · 3 revisions

This is an API Documentation for EUCSerialInterface.

During development changes may occur.

Functions, that are present in every model, and are the same

.tick(); // Explained in Getting Started page
.setCallback(); // Sets callback

Note: the callback function needs to have those paramns: float voltage, float speed, float tempMileage, float current, float temperature, float mileage, bool dataIsNew. Names of variables can vary, but the arangement needs to be like this

.setRideRigidity(); // Sets ride rigidity. Ardguments may vary depending on a unicycle model
.calibrateAlignment(); // Calibrates alignment
.setAlarms(); // Sets alarms, like beeping on certain speed

Functions, that are exclusive for some devices:

MCM2

.enable6kmhTiltback(); // Self-explanatory
.disable6kmhTiltback(); // Self-explanatory too
.beep(); // I think I don't need to explain it? :D

M0

.enable6kmhTiltback(); // Self-explanatory
.disable6kmhTiltback(); // Self-explanatory too
.beep(); // I think I don't need to explain it? :D

Clone this wiki locally