27 lines
No EOL
553 B
Kotlin
27 lines
No EOL
553 B
Kotlin
package de.moritzruth.lampenfieber
|
|
|
|
import de.moritzruth.theaterdsl.dmx.EnttecOpenDmxUsb
|
|
import de.moritzruth.theaterdsl.dmx.PerDeviceDmxDataWriter
|
|
import kotlinx.coroutines.awaitCancellation
|
|
|
|
suspend fun main() {
|
|
EnttecOpenDmxUsb.start()
|
|
|
|
test()
|
|
|
|
val data = UByteArray(512)
|
|
val writer = PerDeviceDmxDataWriter(data)
|
|
|
|
for (device in devices) {
|
|
writer.reset(0, device.firstChannel, device.numberOfChannels)
|
|
device.writeDmxData(writer)
|
|
}
|
|
|
|
EnttecOpenDmxUsb.data = data
|
|
|
|
awaitCancellation()
|
|
}
|
|
|
|
fun test() {
|
|
|
|
} |