change table defnition
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user