From f8a8c2e8697a797bf4417f01d5f2f05a827ddab5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=85=95=E7=82=8E?= <29385962@qq.com> Date: Wed, 23 Feb 2022 07:45:08 +0000 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20arduino/?= =?UTF-8?q?Betas/RGB=5FV2/Command.h?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- arduino/Betas/RGB_V2/Command.h | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 arduino/Betas/RGB_V2/Command.h diff --git a/arduino/Betas/RGB_V2/Command.h b/arduino/Betas/RGB_V2/Command.h deleted file mode 100644 index 04c8397..0000000 --- a/arduino/Betas/RGB_V2/Command.h +++ /dev/null @@ -1,17 +0,0 @@ -#include -// callback function pointer definiton -typedef void (* CommandCallback)(char*); //!< command callback function pointer -class Command -{ - public: - void add(char* id , CommandCallback onCommand); - void run(char* str); - void scalar(float* value, char* user_cmd); - bool isSentinel(char* ch,char* str); - private: - // Subscribed command callback variables - CommandCallback call_list[20];//!< array of command callback pointers - 20 is an arbitrary number - char* call_ids[20]; //!< added callback commands - int call_count;//!< number callbacks that are subscribed - -};