Last active
September 21, 2016 03:34
-
-
Save ramirez7/9377636 to your computer and use it in GitHub Desktop.
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
| main = let inputs = [InputAction Immediate $ getGpioRisingEdge ()] | |
| initial = cycle "GO PURDUE! " | |
| update _ state = tail state | |
| outputs = [OutputAction Immediate $ print . head] | |
| in topLevel inputs update initial outputs | |
| main = let inputs = [InputAction (Repeat 1000000) $ return ()] | |
| initial = cycle "GO PURDUE! " | |
| update _ state = tail state | |
| outputs = [OutputAction Immediate $ print . head] | |
| in topLevel inputs update initial outputs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment