Created
September 20, 2018 18:11
-
-
Save mfe5003/18f8fde402e1c38492410607e18296d7 to your computer and use it in GitHub Desktop.
minimal artiq kasli experiment
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
from artiq.experiment import * | |
class LED(EnvExperiment): | |
def build(self): | |
self.setattr_device("core") | |
self.setattr_device("led0") | |
self.setattr_device("led1") | |
@kernel | |
def run(self): | |
self.core.reset() | |
self.led0.off() | |
while True: | |
self.led0.on() | |
self.led1.off() | |
delay(500*ms) | |
self.led0.off() | |
self.led1.on() | |
delay(500*ms) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment