from artiq.language.core import *
from artiq.language.db import *
class GPIOOut(AutoDB):
class DBKeys:
channel = Argument()
@kernel
def on(self):
syscall("gpio_set", self.channel, True)
def off(self):
syscall("gpio_set", self.channel, False)