I2Cwrapper v0.3.0
Generic framework for Arduino I2C target devices
Stepper_and_Servo_together.ino File Reference

Functions

void setup ()
 
void loop ()
 

Variables

uint8_t i2cAddress = 0x08
 
const uint8_t stepPin = 6
 
const uint8_t dirPin = 3
 
const uint8_t enablePin = 8
 
const uint8_t servo1Pin = 12
 
const uint8_t servo2Pin = 13
 
I2Cwrapper wrapper (i2cAddress)
 
int servo1pos = 90
 
int servo2pos = 90
 
int servo1speed = 11
 
int servo2speed = 5
 

Function Documentation

◆ loop()

void loop ( )

◆ setup()

void setup ( )

Variable Documentation

◆ dirPin

const uint8_t dirPin = 3

◆ enablePin

const uint8_t enablePin = 8

◆ i2cAddress

uint8_t i2cAddress = 0x08

◆ servo1Pin

const uint8_t servo1Pin = 12

◆ servo1pos

int servo1pos = 90

◆ servo1speed

int servo1speed = 11

◆ servo2Pin

const uint8_t servo2Pin = 13

◆ servo2pos

int servo2pos = 90

◆ servo2speed

int servo2speed = 5

◆ stepPin

const uint8_t stepPin = 6

◆ wrapper

ServoI2C servo2& wrapper ( i2cAddress  )