You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the VB.NET version of the example called "Austria". It was automatically converted from C# to VB.NET using this tool: http://converter.telerik.com/
I made a manual correction (because the converter got it wrong) in the for loop and changed the division operator from / to \. The integer division is just used as a mathematical trick to calculate the row number more information about integer division here:
ImportsStreamDeckSharpModuleModule1SubMain()'Create some color we use later to draw the flag of austriaDimred=StreamDeckKeyBitmap.FromRGBColor(237,41,57)Dimwhite=StreamDeckKeyBitmap.FromRGBColor(255,255,255)DimrowColors=NewStreamDeckKeyBitmap(){red,white,red}'Open the Stream Deck deviceUsingdeck=StreamDeck.FromHID()deck.SetBrightness(100)'Send the bitmap informaton to the deviceForiAsInteger=0Todeck.NumberOfKeys-1'Note: \ is an integer division operatordeck.SetKeyBitmap(i,rowColors(i\5))NextEndUsingEndSubEndModule