I2Cwrapper v0.4.0
Generic framework for Arduino I2C target devices
ServoI2C.h File Reference

Arduino library for I2C-control of servo motors connected to another Arduino which runs the I2Cwrapper firmware.ino with the ServoI2C module enabled. More...

Detailed Description

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.

Author

Copyright (c) 2022 juh

License

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
 

Macro Definition Documentation

◆ log

#define log (   ...)

Variable Documentation

◆ servoAttach1Cmd

const uint8_t servoAttach1Cmd = servoCmdOffset + 0

◆ servoAttach2Cmd

const uint8_t servoAttach2Cmd = servoCmdOffset + 1

◆ servoAttachedCmd

const uint8_t servoAttachedCmd = servoCmdOffset + 7

◆ servoAttachedResult

const uint8_t servoAttachedResult = 1

◆ servoAttachResult

const uint8_t servoAttachResult = 1

◆ servoCmdOffset

const uint8_t servoCmdOffset = 50

◆ servoDetachCmd

const uint8_t servoDetachCmd = servoCmdOffset + 2

◆ servoReadCmd

const uint8_t servoReadCmd = servoCmdOffset + 5

◆ servoReadMicrosecondsCmd

const uint8_t servoReadMicrosecondsCmd = servoCmdOffset + 6

◆ servoReadMicrosecondsResult

const uint8_t servoReadMicrosecondsResult = 2

◆ servoReadResult

const uint8_t servoReadResult = 2

◆ servoWriteCmd

const uint8_t servoWriteCmd = servoCmdOffset + 3

◆ servoWriteMicrosecondsCmd

const uint8_t servoWriteMicrosecondsCmd = servoCmdOffset + 4