Stairs/src/config.h
Mark van Renswoude 1f5f0a7d42 Added Ping command
Added prototype Node.js client app
Added UDP protocol documentation
Replaced brzo_i2c library with standard Wire.h while debugging
Removed test code from PCA9685 library
2017-03-24 21:40:56 +01:00

28 lines
650 B
C

#ifndef __Config
#define __Config
#include <stdint.h>
#include "credentials.h"
// The name of this device on the network
static const char* WiFiHostname = "Stairs";
// 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 = 13;
static const uint8_t PinSCL = 12;
// I2C address and PWM frequency of the PCA9685 board
static const uint8_t PWMDriverAddress = 0x40;
static const uint16_t PWMDriverPWMFrequency = 1600;
#endif