I2Cwrapper v0.3.0
Generic framework for Arduino I2C target devices
|
Arduino library for I2C-control of servo motors connected to another Arduino which runs the I2Cwrapper firmware.ino with the ServoI2C module enabled. More...
Arduino library for I2C-control of servo motors connected to another Arduino which runs the I2Cwrapper firmware.ino with the ServoI2C module enabled.
Just as AccelStepperI2C, ServoI2C mimicks the interface of the original Arduino Servo libraries, so that it can be used with only minor adaptations to non-I2C code.
Copyright (c) 2022 juh
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
Classes | |
class | ServoI2C |
An I2C wrapper class for the Arduino Servo library. More... | |
Macros | |
#define | log(...) |
Variables | |
const uint8_t | servoCmdOffset = 50 |
const uint8_t | servoAttach1Cmd = servoCmdOffset + 0 |
const uint8_t | servoAttachResult = 1 |
const uint8_t | servoAttach2Cmd = servoCmdOffset + 1 |
const uint8_t | servoDetachCmd = servoCmdOffset + 2 |
const uint8_t | servoWriteCmd = servoCmdOffset + 3 |
const uint8_t | servoWriteMicrosecondsCmd = servoCmdOffset + 4 |
const uint8_t | servoReadCmd = servoCmdOffset + 5 |
const uint8_t | servoReadResult = 2 |
const uint8_t | servoReadMicrosecondsCmd = servoCmdOffset + 6 |
const uint8_t | servoReadMicrosecondsResult = 2 |
const uint8_t | servoAttachedCmd = servoCmdOffset + 7 |
const uint8_t | servoAttachedResult = 1 |
#define log | ( | ... | ) |
const uint8_t servoAttach1Cmd = servoCmdOffset + 0 |
const uint8_t servoAttach2Cmd = servoCmdOffset + 1 |
const uint8_t servoAttachedCmd = servoCmdOffset + 7 |
const uint8_t servoAttachedResult = 1 |
const uint8_t servoAttachResult = 1 |
const uint8_t servoCmdOffset = 50 |
const uint8_t servoDetachCmd = servoCmdOffset + 2 |
const uint8_t servoReadCmd = servoCmdOffset + 5 |
const uint8_t servoReadMicrosecondsCmd = servoCmdOffset + 6 |
const uint8_t servoReadMicrosecondsResult = 2 |
const uint8_t servoReadResult = 2 |
const uint8_t servoWriteCmd = servoCmdOffset + 3 |
const uint8_t servoWriteMicrosecondsCmd = servoCmdOffset + 4 |