WindowsIoT.TouchSample/Communication/SerialComm.cs
/// <summary>
/// Get minimum level for brightness regulation
/// </summary>
/// <param name="channel">Channel number, range [0;7]</param>
/// <returns>Brightness level, range [0;1]</returns>
Get minimum level for brightness regulation
Get minimum level for brightness regulation
public float MinLvlGet(byte channel)
        {
            if (channel > 7)
                return 0;
            return buffer[channel] / 255f;
        }
public float MinLvlGet ( byte channel ) { if ( channel > 7 ) return 0 ; return buffer [ channel ] / 255f ; }
Get minimum level for brightness regulation
Get minimum level for brightness regulation
Brightness level, range [0;1]
Brightness level range [ 0 ; 1 ]
channel
byte
Channel number, range [0;7]
Channel number range [ 0 ; 7 ]