Skip to content

Commit 57bd661

Browse files
committed
botão menu
1 parent 0604189 commit 57bd661

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

ViscaControllerPtz/Form1.Designer.cs

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ViscaControllerPtz/Form1.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,5 +568,11 @@ private void trackBar2_MouseLeave(object sender, EventArgs e)
568568
Properties.Settings.Default["TiltSpeed"] = trackBar2.Value.ToString();
569569
Properties.Settings.Default.Save();
570570
}
571+
572+
private void btnMenu_Click(object sender, EventArgs e)
573+
{
574+
byte[] buff = { 0x81, 0x01, 0x06, 0x06, 0x02, 0xFF };
575+
this.serialPort1.Write(buff, 0, buff.Length);
576+
}
571577
}
572578
}

ViscaControllerPtz/ViscaControllerPtz.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<UpdatePeriodically>false</UpdatePeriodically>
2323
<UpdateRequired>false</UpdateRequired>
2424
<MapFileExtensions>true</MapFileExtensions>
25-
<ApplicationRevision>0</ApplicationRevision>
25+
<ApplicationRevision>1</ApplicationRevision>
2626
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
2727
<UseApplicationTrust>false</UseApplicationTrust>
2828
<BootstrapperEnabled>true</BootstrapperEnabled>

0 commit comments

Comments
 (0)