From f86079326246118d1d4a210b796ab420055a0460 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Micha=C3=ABl=20Celerier?= Date: Wed, 14 Aug 2024 07:18:25 -0400 Subject: [PATCH] test --- LedProcesses/LedFX.hpp | 49 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 LedProcesses/LedFX.hpp diff --git a/LedProcesses/LedFX.hpp b/LedProcesses/LedFX.hpp new file mode 100644 index 0000000..7269d7f --- /dev/null +++ b/LedProcesses/LedFX.hpp @@ -0,0 +1,49 @@ +#pragma once +#include +#include +#include + +#include +#include + +namespace Led +{ +struct led_stripe_port +{ + halp_flags(buffer, led_stripe); + std::vector value; // In string ? +}; + +struct LedFX +{ + halp_meta(name, "LedFX") + halp_meta(c_name, "LedFX") + halp_meta(category, "UI") + halp_meta(author, "Jean-Michaƫl Celerier") + halp_meta(description, "LedFX") + halp_meta(uuid, "62bc0879-0b3d-436f-bdd6-7d56db3c2a2f") + + struct + { + } inputs; + + struct + { + struct + { + halp_flags(buffer, led_stripe); + std::vector value; // In string ? + } stripe; + } outputs; + + void operator()() + { + outputs.stripe.value.resize(12 * 3); + for (int i = 0; i < 12 * 3; i++) + outputs.stripe.value[i] = r(); + } + + std::random_device dev; + rnd::pcg r{dev}; +}; +}