View difference between Paste ID: PGrk5eFJ and KJfxecsq
SHOW: | | - or go back to the newest paste.
1
#include <ipst.h>
2-
int x=0;
2+
int x=100;
3
void setup(){
4
  setTextSize(3);
5
}
6-
6+
void loop()
7-
void loop(){
7+
{    
8-
  glcd(0,0,"%d ",x);
8+
  if (in(18)==0){
9-
  x++; //x=x+1
9+
    sound(16,1000,100);
10-
  delay(1000);
10+
  }
11
  if (in(27)==0){
12
    sound(16,2000,100);
13
  }
14
}