Im not trying to emulate the arduino, but some times I want to test some ideas
concepts before loan in to the arduino.
For example lets say....
It has occur to me the next idea
instead of use;
int number_fan = 0;
int fan_sate[6][4] = { 1,1,1,1},
{0,1,1,1},
{1,0,1,1},
{1,1,0,1},
{1,1,1,0},
{0,0,0,0},
void setup(){
}
void loop(){
if( number_fans > 5) number_fans = 0;
number_fans ++;
}
Something like this... I want to test instead;
int number_fan = 0;
int fan_sate[6][4] = { 1,1,1,1},
{0,1,1,1},
{1,0,1,1},
{1,1,0,1},
{1,1,1,0},
{0,0,0,0},
void setup(){
constrain(number_fan, 0,5);
}
void loop(){
number_fans ++;
}
To see if the roll over variable will work as limit instead of the if comparator...
I try on DevC++
But;
Dont recognize int variables, or operators, I guess because the arduino ide load some libraries as default to C++ to work as we know...
Any one know the libraries I must declare in DevC++ to test this and similar codes'?
Thanks.
-Alex.
