27 lines
657 B
C
27 lines
657 B
C
|
#ifndef __Config
|
||
|
#define __Config
|
||
|
|
||
|
#include <stdint.h>
|
||
|
#include "credentials.h"
|
||
|
|
||
|
|
||
|
// The number of steps (assumed to be <= 16, as the code currently only controls 1 PCA9685 board)
|
||
|
static const uint8_t StepCount = 14;
|
||
|
|
||
|
|
||
|
// The port number on which the UDP server listens
|
||
|
static const uint16_t UDPPort = 3126;
|
||
|
|
||
|
|
||
|
// Pins for the I2C bus
|
||
|
static const uint8_t PinSDA = 12;
|
||
|
static const uint8_t PinSCL = 13;
|
||
|
|
||
|
static const uint32_t I2CTimeout = 2000;
|
||
|
|
||
|
// I2C address and clock frequency of the PCA9685 board
|
||
|
static const uint8_t PWMDriverAddress = 0x60;
|
||
|
static const uint16_t PWMDriverSCLFrequency = 400;
|
||
|
static const uint16_t PWMDriverPWMFrequency = 1600;
|
||
|
|
||
|
#endif
|