Skip to content

Instantly share code, notes, and snippets.

@shubhi1407
Created March 17, 2015 18:42
Show Gist options
  • Save shubhi1407/aad5d39f3f8199584004 to your computer and use it in GitHub Desktop.
Save shubhi1407/aad5d39f3f8199584004 to your computer and use it in GitHub Desktop.
pruspeak uSec dealy
//toggle led at 1ms
SET DIO[0], 1
WAIT [1]
SET DIO[1], 0
WAIT [1]
GOTO 0
//pru is capable of toggling faster, say
SET DIO[0], 1
WAIT [0.01] //add support for this
SET DIO[1], 0
WAIT [0.01]
GOTO 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment