The Saprki is pre-assembled and packed with more than 12 sensors. Since it is based on Arduino,
programming Sparki follows the programming in Arduino, which is based on C language. Sparki
provides the programming interface, called “SparkiDuino”
File Download and Detail:
- Lab Instruction
- Quiz
- Sample Codes
- More_beeping
- Rhythm_sample
More_beeping
#include <Sparki.h>
void setup()
{
}
void loop()
{
int i;
for (i=0;i<5;i++)
{
sparki.beep();
delay(300);
}
delay(2000);
}
Rhythm_sample
#include <Sparki.h>
void setup()
{
}
void loop()
{
int i;
for (i=0;i<3;i++)
{
sparki.beep();
delay(100);
}
delay(1000);
for (i=0;i<2;i++)
{
sparki.beep();
delay(1000);
}
delay(1000);
for (i=0;i<1;i++)
{
sparki.beep();
delay(100);
}
delay(1000);
}