here is the code i uploaded into my nylon board.
check out this site for more information:
http://nylon.media.mit.edu/

nylon code

//spae

void buzz1()
{
:1=1;
:1=0;
:1=0;
:1=0;
:1=0;
:1=0;
:1=0;
}


void buzz5()
{
:5=1;
:5=0;
:5=0;
:5=0;
:5=1;
:5=1;
:5=0;
:5=0;
}


void buzz6()
{
:6=1;
:6=0;
:6=0;
:6=0;
:6=1;
:6=0;
:6=0;
:6=1;
:6=0;
:6=0;
}

void nobuzz1()
{
:1=0;
:1=0;
:1=0;
:1=0;
:1=0;
:1=0;
:1=0;
}

void nobuzz5()
{
:5=0;
:5=0;
:5=0;
:5=0;
:5=0;
:5=0;
:5=0;
}

void nobuzz6()
{
:6=0;
:6=0;
:6=0;
:6=0;
:6=0;
:6=0;
:6=0;
}

int bz;
int by;
int bx;

while (true) {
bz =#1;
by =#2;
bx =#0;


if (bz > 1)
{ 
buzz1();
} 

if (bz < 1)
{
nobuzz1();
}

if (by > 1)
{ 
buzz5();
} 

if (by < 1)
{
nobuzz5();
}

if (bx > 1)
{ 
buzz6();
} 

if (bx < 1)
{
nobuzz6();
}


else {
nobuzz1();
nobuzz5();
nobuzz6();

}
}

[back to index]