mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-25 11:18:27 +08:00
examples/dds_test: use integer as boolean (now supported by compiler)
This commit is contained in:
parent
76cef042a5
commit
4de670b370
@ -9,7 +9,7 @@ class DDSTest(AutoContext):
|
|||||||
def run(self):
|
def run(self):
|
||||||
i = 0
|
i = 0
|
||||||
while i < 10000:
|
while i < 10000:
|
||||||
if i & 0x200 != 0:
|
if i & 0x200:
|
||||||
self.led.set(1)
|
self.led.set(1)
|
||||||
else:
|
else:
|
||||||
self.led.set(0)
|
self.led.set(0)
|
||||||
|
Loading…
Reference in New Issue
Block a user