From 80839df4399d80da0448353fb7f3ad2973d250b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=85=95=E7=82=8E?= <29385962@qq.com> Date: Sat, 1 Jan 2022 11:47:34 +0000 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20arduino/?= =?UTF-8?q?Betas/RGB=5FV1.1.1/Command.h?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- arduino/Betas/RGB_V1.1.1/Command.h | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 arduino/Betas/RGB_V1.1.1/Command.h diff --git a/arduino/Betas/RGB_V1.1.1/Command.h b/arduino/Betas/RGB_V1.1.1/Command.h deleted file mode 100644 index 04c8397..0000000 --- a/arduino/Betas/RGB_V1.1.1/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 - -};