This repository has been archived on 2025-10-20. You can view files and clone it, but cannot push or open issues or pull requests.
Files
2bki21/INF/libraries/PCA9685/examples/SetChannelOnAndOffTime/Constants.h
2025-04-02 11:33:52 +02:00

34 lines
699 B
C++

// ----------------------------------------------------------------------------
// Constants.h
//
//
// Authors:
// Peter Polidoro peter@polidoro.io
// ----------------------------------------------------------------------------
#ifndef CONSTANTS_H
#define CONSTANTS_H
#include <Arduino.h>
#include <PCA9685.h>
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