artiq/artiq/coredevice/gpio.py

10 lines
179 B
Python

from artiq.language.core import *
class GPIOOut(AutoContext):
parameters = "channel"
@kernel
def set(self, level):
syscall("gpio_set", self.channel, level)