aufgaben weil vergesen zu commiten

This commit is contained in:
danielvici123
2025-04-02 11:33:52 +02:00
parent 6ee3cb1211
commit 51468e220a
52 changed files with 1269 additions and 622 deletions

View File

@@ -3,28 +3,29 @@
//
//
// Authors:
// Peter Polidoro peterpolidoro@gmail.com
// Peter Polidoro peter@polidoro.io
// ----------------------------------------------------------------------------
#ifndef CONSTANTS_H
#define CONSTANTS_H
#include <Arduino.h>
#include <PCA9685.h>
namespace constants
{
extern const uint8_t device_address;
extern const size_t output_enable_pin;
extern const PCA9685::DeviceAddress device_address;
extern const PCA9685::Pin output_enable_pin;
extern const size_t loop_delay;
extern const uint16_t frequency;
extern const uint8_t channel;
extern const PCA9685::Frequency frequency;
extern const PCA9685::Channel channel;
enum{EXAMPLE_COUNT=4};
struct Example
{
uint16_t pulse_width;
uint16_t phase_shift;
PCA9685::Duration pulse_width;
PCA9685::Duration phase_shift;
};
extern const Example examples[EXAMPLE_COUNT];