2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-26 03:38:25 +08:00

relay: fix naming

This commit is contained in:
occheung 2023-09-18 20:01:44 -07:00 committed by Sébastien Bourdeauducq
parent 477a7b693c
commit 5c64eac8d2

View File

@ -169,8 +169,8 @@ class Relay:
RELAY_SPI_CONFIG, 16, SPIT_RELAY_WR, CS_RELAY | CS_LED)
@kernel
def set_led(self, leds: TInt32):
self.bus.write(leds << 16)
def enable(self, en: TInt32):
self.bus.write(en << 16)
class ADC: