mirror of https://github.com/m-labs/artiq.git
19 lines
433 B
Python
19 lines
433 B
Python
from artiq.language.experiment import Experiment, kernel
|
|
from artiq.devices import corecom_serial, runtime, core, gpio_core
|
|
|
|
class CompilerTest(Experiment):
|
|
channels = "core led"
|
|
|
|
@kernel
|
|
def run(self):
|
|
self.led.set(1)
|
|
|
|
if __name__ == "__main__":
|
|
with corecom_serial.CoreCom() as com:
|
|
coredev = core.Core(runtime.Environment(), com)
|
|
exp = CompilerTest(
|
|
core=coredev,
|
|
led=gpio_core.GPIOOut(coredev, 0)
|
|
)
|
|
exp.run()
|