Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. setup(){
  2. int counter ==0;
  3. }
  4. draw(){
  5. if (counter==0){
  6. //draw first data
  7. }else if (counter==1){
  8. //draw second data
  9. }
  10. counter++;//increments counter
  11. if (counter>=2){//if the counter gets too big, set it back to 0
  12. counter =0;
  13. }
  14. delay(1000)// which is .5 seconds
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement