Created
March 17, 2015 18:42
-
-
Save shubhi1407/aad5d39f3f8199584004 to your computer and use it in GitHub Desktop.
pruspeak uSec dealy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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