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/SetChannelPulseWidth/Constants.cpp
danielvici123 c810f9541d inf sachen
2024-12-02 11:49:11 +01:00

42 lines
756 B
C++

// ----------------------------------------------------------------------------
// Constants.cpp
//
//
// Authors:
// Peter Polidoro peterpolidoro@gmail.com
// ----------------------------------------------------------------------------
#include "Constants.h"
namespace constants
{
const uint8_t device_address = 0x40;
const size_t output_enable_pin = 2;
const size_t loop_delay = 8000;
const uint16_t frequency = 200;
const uint8_t channel = 0;
const Example examples[EXAMPLE_COUNT] =
{
{
819, // PULSE_WIDTH
409, // PHASE_SHIFT
},
{
3686, // PULSE_WIDTH
3685, // PHASE_SHIFT
},
{
// Always ON
4096, // PULSE_WIDTH
0, // PHASE_SHIFT
},
{
// Always OFF
0, // PULSE_WIDTH
0, // PHASE_SHIFT
}
};
}