I just taught my little nephew how to write a "Hello World" program on the TouchShield Slide in 5 minutes...
- Dock Slide to Arduino
- Plug Arduino into my Computer
- Press the Button on the Slide
- Write Code for the Slide
- Select the Slide
- Press Upload
- Check Out the Slide
{
background(0,0,0); //this paints the whole background black
fill(0,0,255); //the inside fill of the next shape I draw will be blue
}
void loop()
{
text("Hello World", 10, 10, 16, 16); // draw Hello World on the display
ellipse(100, 100, 20, 20); // draw an ellipse(x, y, width, height)
rect(200, 190, 40, 40); // draw a rect(x, y, width, height)
}
1 comment:
why do i keep getting this error
In function 'void setup()':
error: 'background' was not declared in this scope In function 'void loop()':
Post a Comment