2013 Embedded Systems - Grant Ford
Thursday, 13 June 2013
22 - Dice
void setup()
{
Serial.begin(9600);
}
int count = 1;
void loop()
{
while (count < 101)
{
delay(1000);
Serial.print("Roll number ");
Serial.print(count);
Serial.print(": ");
Serial.println(random(1,7));
count ++;
}
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment