2017-03-23 18:45:29 +00:00
|
|
|
#ifndef __Config
|
|
|
|
#define __Config
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "credentials.h"
|
|
|
|
|
2017-03-24 20:40:56 +00:00
|
|
|
// The name of this device on the network
|
|
|
|
static const char* WiFiHostname = "Stairs";
|
|
|
|
|
2017-03-23 18:45:29 +00:00
|
|
|
|
|
|
|
// 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
|
2017-03-24 20:40:56 +00:00
|
|
|
static const uint8_t PinSDA = 13;
|
|
|
|
static const uint8_t PinSCL = 12;
|
2017-03-23 18:45:29 +00:00
|
|
|
|
|
|
|
|
2017-03-24 20:40:56 +00:00
|
|
|
// I2C address and PWM frequency of the PCA9685 board
|
|
|
|
static const uint8_t PWMDriverAddress = 0x40;
|
2017-03-23 18:45:29 +00:00
|
|
|
static const uint16_t PWMDriverPWMFrequency = 1600;
|
|
|
|
|
|
|
|
#endif
|