registerToSiyataSD7Event

fun registerToSiyataSD7Event(    context: Context,     channels: List<Channel>,     disconnectChannel: (Long) -> Unit,     connectChannel: (Long) -> Unit)

Call this method to :

  • Instantiate the Led display

  • Register the rotary knob receiver to receive next and previous intent

  • Initiate some params Note this method should be called at the start of the application and it will be excecuted only when it is possible to instantiate the Led display

Parameters

context

: the application context

channels

: all channel

disconnectChannel

: method to be executed when need to disconnect a channel

connectChannel

: method to be executed when need to connect a channel