33 lines
634 B
C++
33 lines
634 B
C++
// ----------------------------------------------------------------------------
|
|
// Constants.h
|
|
//
|
|
//
|
|
// Authors:
|
|
// Peter Polidoro peterpolidoro@gmail.com
|
|
// ----------------------------------------------------------------------------
|
|
#ifndef CONSTANTS_H
|
|
#define CONSTANTS_H
|
|
#include <Arduino.h>
|
|
|
|
|
|
namespace constants
|
|
{
|
|
extern const uint8_t device_address;
|
|
extern const size_t output_enable_pin;
|
|
|
|
extern const size_t loop_delay;
|
|
extern const uint16_t frequency;
|
|
extern const uint8_t channel;
|
|
|
|
enum{EXAMPLE_COUNT=4};
|
|
|
|
struct Example
|
|
{
|
|
uint16_t on_time;
|
|
uint16_t off_time;
|
|
};
|
|
|
|
extern const Example examples[EXAMPLE_COUNT];
|
|
}
|
|
#endif
|