資源簡介
本歷程用的是VS2012程序編寫,用c#編程,本包為工程壓縮包,非exe執(zhí)行文件,歷程實(shí)現(xiàn)串口實(shí)時(shí)控制stm32控制步進(jìn)電機(jī)正轉(zhuǎn)翻轉(zhuǎn),轉(zhuǎn)動(dòng)速度的控制,還有可固定角度轉(zhuǎn)動(dòng),每一句的程序后均有解釋語句,適合c#串口通信入門者學(xué)習(xí),高手繞,
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Linq;
using?System.Text;
using?System.Threading.Tasks;
using?System.Windows.Forms;
namespace?步進(jìn)電機(jī)調(diào)試
{
????public?partial?class?Form1?:?Form
????{
????????public?Form1()
????????{
????????????InitializeComponent();
????????????System.Windows.Forms.Control.CheckForIllegalCrossThreadCalls?=?false;
????????}
????????static?Int16?speed_add?=?0x01;
????????static?Int16?direction_data_clockwise?=?0x11;????????????//順時(shí)針
????????static?Int16?direction_data_anticlockwise?=?0x12;????????//逆時(shí)針
????????private?void?button1_Click(object?sender?EventArgs?e)
????????{
????????????if?(textBox2.Text?!=?““?&?textBox3.Text?!=?““?&?(radioButton1.Checked?|?radioButton2.Checked)?&?comboBox1.Text?!=?““?&?comboBox2.Text?!=?““)
????????????{
????????????????if?(button1.Text?==?“打開串口“)
????????????????{
????????????????????serialPort1.PortName?=?co
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2015-05-24?20:24??步進(jìn)電機(jī)調(diào)試\
?????目錄???????????0??2015-05-24?20:24??步進(jìn)電機(jī)調(diào)試\步進(jìn)電機(jī)調(diào)試\
?????文件?????????187??2015-05-12?13:15??步進(jìn)電機(jī)調(diào)試\步進(jìn)電機(jī)調(diào)試\App.config
?????文件???????17639??2015-05-13?21:29??步進(jìn)電機(jī)調(diào)試\步進(jìn)電機(jī)調(diào)試\Form1.Designer.cs
?????文件????????6898??2015-05-13?21:29??步進(jìn)電機(jī)調(diào)試\步進(jìn)電機(jī)調(diào)試\Form1.cs
?????文件????????6016??2015-05-13?21:29??步進(jìn)電機(jī)調(diào)試\步進(jìn)電機(jī)調(diào)試\Form1.resx
?????文件?????????530??2015-05-12?13:15??步進(jìn)電機(jī)調(diào)試\步進(jìn)電機(jī)調(diào)試\Program.cs
?????目錄???????????0??2015-05-24?20:24??步進(jìn)電機(jī)調(diào)試\步進(jìn)電機(jī)調(diào)試\Properties\
?????文件????????1392??2015-05-12?13:15??步進(jìn)電機(jī)調(diào)試\步進(jìn)電機(jī)調(diào)試\Properties\AssemblyInfo.cs
?????文件????????2888??2015-05-12?13:15??步進(jìn)電機(jī)調(diào)試\步進(jìn)電機(jī)調(diào)試\Properties\Resources.Designer.cs
?????文件????????5612??2015-05-12?13:15??步進(jìn)電機(jī)調(diào)試\步進(jìn)電機(jī)調(diào)試\Properties\Resources.resx
?????文件????????1105??2015-05-12?13:15??步進(jìn)電機(jī)調(diào)試\步進(jìn)電機(jī)調(diào)試\Properties\Settings.Designer.cs
?????文件?????????249??2015-05-12?13:15??步進(jìn)電機(jī)調(diào)試\步進(jìn)電機(jī)調(diào)試\Properties\Settings.settings
?????目錄???????????0??2015-05-24?20:24??步進(jìn)電機(jī)調(diào)試\步進(jìn)電機(jī)調(diào)試\bin\
?????目錄???????????0??2015-05-24?20:24??步進(jìn)電機(jī)調(diào)試\步進(jìn)電機(jī)調(diào)試\bin\Debug\
?????文件???????26112??2015-05-13?21:28??步進(jìn)電機(jī)調(diào)試\步進(jìn)電機(jī)調(diào)試\bin\Debug\步進(jìn)電機(jī)調(diào)試.exe
?????文件?????????187??2015-05-12?13:15??步進(jìn)電機(jī)調(diào)試\步進(jìn)電機(jī)調(diào)試\bin\Debug\步進(jìn)電機(jī)調(diào)試.exe.config
?????文件???????30208??2015-05-13?21:28??步進(jìn)電機(jī)調(diào)試\步進(jìn)電機(jī)調(diào)試\bin\Debug\步進(jìn)電機(jī)調(diào)試.pdb
?????文件???????22984??2015-05-13?21:28??步進(jìn)電機(jī)調(diào)試\步進(jìn)電機(jī)調(diào)試\bin\Debug\步進(jìn)電機(jī)調(diào)試.vshost.exe
?????文件?????????187??2015-05-12?13:15??步進(jìn)電機(jī)調(diào)試\步進(jìn)電機(jī)調(diào)試\bin\Debug\步進(jìn)電機(jī)調(diào)試.vshost.exe.config
?????文件?????????490??2010-03-17?22:39??步進(jìn)電機(jī)調(diào)試\步進(jìn)電機(jī)調(diào)試\bin\Debug\步進(jìn)電機(jī)調(diào)試.vshost.exe.manifest
?????文件????????9662??2015-05-13?21:22??步進(jìn)電機(jī)調(diào)試\步進(jìn)電機(jī)調(diào)試\bitbug_favicon.ico
?????目錄???????????0??2015-05-24?20:24??步進(jìn)電機(jī)調(diào)試\步進(jìn)電機(jī)調(diào)試\obj\
?????目錄???????????0??2015-05-24?20:24??步進(jìn)電機(jī)調(diào)試\步進(jìn)電機(jī)調(diào)試\obj\Debug\
?????文件????????1308??2015-05-13?20:29??步進(jìn)電機(jī)調(diào)試\步進(jìn)電機(jī)調(diào)試\obj\Debug\DesignTimeResolveAssemblyReferences.cache
?????文件????????7157??2015-05-13?21:22??步進(jìn)電機(jī)調(diào)試\步進(jìn)電機(jī)調(diào)試\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????目錄???????????0??2015-05-24?20:25??步進(jìn)電機(jī)調(diào)試\步進(jìn)電機(jī)調(diào)試\obj\Debug\TempPE\
?????文件???????????0??2015-05-12?13:15??步進(jìn)電機(jī)調(diào)試\步進(jìn)電機(jī)調(diào)試\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
?????文件???????????0??2015-05-12?13:15??步進(jìn)電機(jī)調(diào)試\步進(jìn)電機(jī)調(diào)試\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
?????文件???????????0??2015-05-12?13:15??步進(jìn)電機(jī)調(diào)試\步進(jìn)電機(jī)調(diào)試\obj\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
?????文件?????????180??2015-05-13?21:28??步進(jìn)電機(jī)調(diào)試\步進(jìn)電機(jī)調(diào)試\obj\Debug\步進(jìn)電機(jī)調(diào)試.Form1.resources
............此處省略9個(gè)文件信息
評(píng)論
共有 條評(píng)論