change table defnition
This commit is contained in:
@@ -1,9 +1,11 @@
|
|||||||
#include <MsTimer2.h>
|
#include <MsTimer2.h>
|
||||||
#include <SwitchControlLibrary.h>
|
#include <SwitchControlLibrary.h>
|
||||||
|
|
||||||
|
#define tableSize 40
|
||||||
|
|
||||||
int loopCount = 0;
|
int loopCount = 0;
|
||||||
int state = 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 index = 0;
|
||||||
|
|
||||||
int val = 1;
|
int val = 1;
|
||||||
@@ -35,6 +37,8 @@ void button() {
|
|||||||
|
|
||||||
void setup()
|
void setup()
|
||||||
{
|
{
|
||||||
|
table[0] = 1;
|
||||||
|
table[tableSize/2] = 2;
|
||||||
SwitchControlLibrary();
|
SwitchControlLibrary();
|
||||||
MsTimer2::set(1, perms);
|
MsTimer2::set(1, perms);
|
||||||
MsTimer2::start();
|
MsTimer2::start();
|
||||||
|
|||||||
Reference in New Issue
Block a user