change table defnition

This commit is contained in:
2020-09-08 23:00:36 +09:00
parent c82c75997c
commit 2589a89fbb

View File

@@ -1,9 +1,11 @@
#include <MsTimer2.h>
#include <SwitchControlLibrary.h>
#define tableSize 40
int loopCount = 0;
int state = 0;
int table[40] = {1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
int table[tableSize];
int index = 0;
int val = 1;
@@ -35,6 +37,8 @@ void button() {
void setup()
{
table[0] = 1;
table[tableSize/2] = 2;
SwitchControlLibrary();
MsTimer2::set(1, perms);
MsTimer2::start();