From 29c419e9540ec60dda045d8c284681537cf8dbae Mon Sep 17 00:00:00 2001 From: sirrow Date: Mon, 14 Sep 2020 00:53:42 +0900 Subject: [PATCH] add plus button --- connect_switch.ino | 51 ++++++++++++++++++++++++++++++---------------- 1 file changed, 34 insertions(+), 17 deletions(-) diff --git a/connect_switch.ino b/connect_switch.ino index 9d8e210..40267fa 100644 --- a/connect_switch.ino +++ b/connect_switch.ino @@ -24,8 +24,8 @@ struct button { struct arrow arrowTable[4]; -#define ButtonTableLength 1 -struct button buttonTable[ButtonTableLength]; +struct button bButton; +struct button plusButton; void perms() { if(val == 0){ @@ -60,12 +60,17 @@ void setup() MsTimer2::set(1, perms); MsTimer2::start(); - buttonTable[0].pinNumber = 3; - for (int i; i