91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 0.28M
    文件類型: .rar
    金幣: 1
    下載: 0 次
    發布日期: 2024-05-03
  • 語言: C#
  • 標簽: LED??開發??

資源簡介


資源截圖

代碼片段和文件信息

using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Text;
using?System.Windows.Forms;

namespace?Demo
{
????public?partial?class?Form1?:?Form
????{
????????public?Form1()
????????{
????????????InitializeComponent();
????????}
????????string?s1;
????????string?s2;
????????string?s3;
????????string?s4;
????????string?s5;
????????string?s6;
????????private?void?button5_Click(object?sender?EventArgs?e)
????????{
????????????int?nResult;
????????????LedDll.COMMUNICATIONINFO?CommunicationInfo?=?new?LedDll.COMMUNICATIONINFO();//定義一通訊參數結構體變量用于對設定的LED通訊,具體對此結構體元素賦值說明見COMMUNICATIONINFO結構體定義部份注示
????????????//ZeroMemory(&CommunicationInfosizeof(COMMUNICATIONINFO));
????????????//TCP通訊********************************************************************************
????????????CommunicationInfo.SendType?=?0;//設為固定IP通訊模式,即TCP通訊
????????????CommunicationInfo.IpStr?=?“192.168.1.99“;//給IpStr賦值LED控制卡的IP
????????????CommunicationInfo.LedNumber?=?1;//LED屏號為1,注意socket通訊和232通訊不識別屏號,默認賦1就行了,485必需根據屏的實際屏號進行賦值
????????????//廣播通訊********************************************************************************
????????????//CommunicationInfo.SendType=1;//設為單機直連,即廣播通訊無需設LED控制器的IP地址
????????????//串口通訊********************************************************************************
????????????//CommunicationInfo.SendType=2;//串口通訊
????????????//CommunicationInfo.Commport=1;//串口的編號,如設備管理器里顯示為?COM3?則此處賦值?3
????????????//CommunicationInfo.Baud=9600;//波特率
????????????//CommunicationInfo.LedNumber=1;

????????????int?hProgram;//節目句柄
????????????hProgram?=?LedDll.LV_CreateProgram(128?128?2);//根據傳的參數創建節目句柄,64是屏寬點數,32是屏高點數,2是屏的顏色,注意此處屏寬高及顏色參數必需與設置屏參的屏寬高及顏色一致,否則發送時會提示錯誤
????????????//此處可自行判斷有未創建成功,hProgram返回NULL失敗,非NULL成功一般不會失敗

????????????nResult?=?LedDll.LV_AddProgram(hProgram?1?0?1);//添加一個節目,參數說明見函數聲明注示
????????????if?(nResult?!=?0)
????????????{
????????????????string?ErrStr;
????????????????ErrStr?=?LedDll.LS_GetError(nResult);
????????????????MessageBox.Show(ErrStr);
????????????????return;
????????????}


????????????//添加一個文本1
????????????LedDll.AREARECT?AreaRect?=?new?LedDll.AREARECT();//區域坐標屬性結構體變量
????????????AreaRect.left?=?0;
????????????AreaRect.top?=?32;
????????????AreaRect.width?=?64;
????????????AreaRect.height?=?32;
????????????LedDll.LV_AddImageTextArea(hProgram?1?1?ref?AreaRect?0);
????????????LedDll.FONTPROP?FontProp?=?new?LedDll.FONTPROP();//文字屬性
????????????FontProp.FontName?=?“宋體“;
????????????FontProp.FontSize?=?12;
????????????FontProp.FontColor?=?LedDll.COLOR_GREEN;
????????????FontProp.FontBold?=?0;
????????????//int?nsize?=?System.Runtime.InteropServices.Marshal.SizeOf(typeof(LedDll.FONTPROP));
????????????LedDll.PLAYPROP?PlayProp?=?new?LedDll.PLAYPROP();
????????????PlayProp.Instyle?=?0;
????????????PlayProp.DelayTime?=?3;
????????????PlayProp.Speed?=?4;
????????????nResult?=?LedDll.LV_AddMultiLine

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件??????19456??2020-12-28?15:42??LED\Demo\bin\Debug\Demo.exe

?????文件??????38400??2020-12-28?15:42??LED\Demo\bin\Debug\Demo.pdb

?????文件??????22712??2020-12-28?15:42??LED\Demo\bin\Debug\Demo.vshost.exe

?????文件????????490??2010-03-17?22:39??LED\Demo\bin\Debug\Demo.vshost.exe.manifest

?????文件?????566784??2017-04-12?16:45??LED\Demo\bin\Debug\lv_led.dll

?????文件??????22811??2020-12-28?15:42??LED\Demo\Form1.cs

?????文件???????6005??2020-12-28?15:42??LED\Demo\Form1.Designer.cs

?????文件???????6008??2020-12-28?15:42??LED\Demo\Form1.resx

?????文件???????4747??2020-12-28?09:27??LED\Demo\LED.csproj

?????文件??????47358??2016-01-12?09:19??LED\Demo\LedDll.cs

?????文件????????814??2016-07-06?14:20??LED\Demo\obj\Debug\Demo.csproj.FileListAbsolute.txt

?????文件????????847??2015-12-23?16:09??LED\Demo\obj\Debug\Demo.csproj.GenerateResource.Cache

?????文件??????19456??2016-07-06?14:20??LED\Demo\obj\Debug\Demo.exe

?????文件????????180??2015-12-23?16:09??LED\Demo\obj\Debug\Demo.Form1.resources

?????文件??????38400??2016-07-06?14:20??LED\Demo\obj\Debug\Demo.pdb

?????文件????????180??2015-12-23?13:09??LED\Demo\obj\Debug\Demo.Properties.Resources.resources

?????文件???????2359??2020-12-28?14:57??LED\Demo\obj\x86\Debug\Demo.csproj.FileListAbsolute.txt

?????文件????????847??2020-12-28?14:34??LED\Demo\obj\x86\Debug\Demo.csproj.GenerateResource.Cache

?????文件???????1467??2020-12-28?14:34??LED\Demo\obj\x86\Debug\Demo.csprojResolveAssemblyReference.cache

?????文件??????19456??2020-12-28?15:42??LED\Demo\obj\x86\Debug\Demo.exe

?????文件????????180??2020-12-28?15:42??LED\Demo\obj\x86\Debug\Demo.Form1.resources

?????文件??????38400??2020-12-28?15:42??LED\Demo\obj\x86\Debug\Demo.pdb

?????文件????????180??2020-12-28?14:06??LED\Demo\obj\x86\Debug\Demo.Properties.Resources.resources

?????文件???????1231??2020-12-28?15:27??LED\Demo\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache

?????文件???????6551??2020-12-28?15:02??LED\Demo\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache

?????文件????????520??2020-12-28?15:42??LED\Demo\obj\x86\Debug\LED.csproj.FileListAbsolute.txt

?????文件????????847??2020-12-28?15:42??LED\Demo\obj\x86\Debug\LED.csproj.GenerateResource.Cache

?????文件???????1467??2020-12-28?15:33??LED\Demo\obj\x86\Debug\LED.csprojResolveAssemblyReference.cache

?????文件???????4608??2020-12-28?09:27??LED\Demo\obj\x86\Debug\TempPE\Properties.Resources.Designer.cs.dll

?????文件????????465??2015-12-23?09:53??LED\Demo\Program.cs

............此處省略24個文件信息

評論

共有 條評論