// ---------------------------------------------------------------------------- // Constants.h // // // Authors: // Peter Polidoro peter@polidoro.io // ---------------------------------------------------------------------------- #ifndef CONSTANTS_H #define CONSTANTS_H #include #include namespace constants { extern const PCA9685::DeviceAddress device_address; extern const PCA9685::Pin output_enable_pin; extern const size_t loop_delay; extern const PCA9685::Frequency frequency; extern const PCA9685::Channel channel; enum{EXAMPLE_COUNT=4}; struct Example { PCA9685::Time on_time; PCA9685::Time off_time; }; extern const Example examples[EXAMPLE_COUNT]; } #endif