hi,
I found this code in the demoproject from the K8055 kit:
CheckBox5.Checked = (i >> 1) And 1 (see in red to reveal in the complete code)
Can someone explain how to ‘read’ this piece of code? I don’t understand this way!?
Thanx!
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Dim i As Integer
Dim Data1 As Integer
Dim Data2 As Integer
Timer1.Enabled = False
i = ReadAllDigital
[color=#FF0000]CheckBox4.Checked = i And 1
CheckBox5.Checked = (i >> 1) And 1
CheckBox6.Checked = (i >> 2) And 1
CheckBox7.Checked = (i >> 3) And 1
CheckBox8.Checked = (i >> 4) And 1[/color]
ReadAllAnalog(Data1, Data2)
VScrollBar3.Value = 255 - Data1
VScrollBar4.Value = 255 - Data2
Label6.Text = CStr(Data1)
Label7.Text = CStr(Data2)
TextBox1.Text = CStr(ReadCounter(1))
TextBox2.Text = CStr(ReadCounter(2))
Timer1.Enabled = True
End Sub