Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <popx2.h>
- int i=0;
- void setup() {setTextSize(3);}
- void loop() {
- if (sw1()&&sw_OK()){
- i=0;
- }
- else if (sw1()){
- i++;
- while(sw1());
- }
- else if (sw_OK()){
- i--;
- while(sw_OK());
- }
- glcd(1,0,"I=%d ",i);
- }
Advertisement
Add Comment
Please, Sign In to add comment