实例介绍
在win10系统下通过蓝牙获取陀螺仪、温度气压等数据的简单实验。蓝牙为nRF51822、陀螺仪芯片MPU6050、博世BMP180温度气压传感器、环境光接近传感器芯片AP3216。 要点为通过NuGet安装UwpDesktop,才能在win32 Form下调用UWP相关API。
【实例截图】
【核心代码】
4744302542969502998.rar
├── packages
│ ├── SharpDX.3.0.2
│ │ ├── lib
│ │ │ ├── net45
│ │ │ │ ├── SharpDX.dll
│ │ │ │ └── SharpDX.xml
│ │ │ └── portable-net45+netcore45+wpa81+MonoAndroid1+MonoTouch1
│ │ │ ├── SharpDX.dll
│ │ │ └── SharpDX.xml
│ │ └── SharpDX.3.0.2.nupkg
│ ├── SharpDX.XAudio2.3.0.2
│ │ ├── lib
│ │ │ ├── net45
│ │ │ │ ├── SharpDX.XAudio2.dll
│ │ │ │ └── SharpDX.XAudio2.xml
│ │ │ └── portable-net45+netcore45+wpa81+MonoAndroid1+MonoTouch1
│ │ │ ├── SharpDX.XAudio2.dll
│ │ │ └── SharpDX.XAudio2.xml
│ │ └── SharpDX.XAudio2.3.0.2.nupkg
│ └── UwpDesktop.10.0.10586.2
│ ├── analyzers
│ │ └── dotnet
│ │ └── UwpDesktopAnalyzer.dll
│ ├── build
│ │ └── portable-net45+uap
│ │ └── UwpDesktop.targets
│ ├── tools
│ │ ├── install.ps1
│ │ └── uninstall.ps1
│ └── UwpDesktop.10.0.10586.2.nupkg
├── 蓝牙传感器
│ ├── 8Track_128px_1194534_easyicon.net.ico
│ ├── 8Track_128px_1194534_easyicon.net.png
│ ├── App.config
│ ├── bin
│ │ ├── Debug
│ │ │ ├── SharpDX.dll
│ │ │ ├── SharpDX.XAudio2.dll
│ │ │ ├── SharpDX.XAudio2.xml
│ │ │ ├── SharpDX.xml
│ │ │ ├── sound
│ │ │ │ └── sound.wav
│ │ │ ├── sound.wav
│ │ │ ├── System.Runtime.WindowsRuntime.dll
│ │ │ ├── System.Runtime.WindowsRuntime.UI.Xaml.dll
│ │ │ ├── Windows.ApplicationModel.Activation.ActivatedEventsContract.winmd
│ │ │ ├── Windows.ApplicationModel.Activation.ActivationCameraSettingsContract.winmd
│ │ │ ├── Windows.ApplicationModel.Activation.ContactActivatedEventsContract.winmd
│ │ │ ├── Windows.ApplicationModel.Activation.WebUISearchActivatedEventsContract.winmd
│ │ │ ├── Windows.ApplicationModel.Background.BackgroundAlarmApplicationContract.winmd
│ │ │ ├── Windows.ApplicationModel.Calls.Background.CallsBackgroundContract.winmd
│ │ │ ├── Windows.ApplicationModel.Calls.CallsVoipContract.winmd
│ │ │ ├── Windows.ApplicationModel.Calls.LockScreenCallContract.winmd
│ │ │ ├── Windows.ApplicationModel.Resources.Management.ResourceIndexerContract.winmd
│ │ │ ├── Windows.ApplicationModel.Search.Core.SearchCoreContract.winmd
│ │ │ ├── Windows.ApplicationModel.Search.SearchContract.winmd
│ │ │ ├── Windows.ApplicationModel.Wallet.WalletContract.winmd
│ │ │ ├── Windows.Devices.Custom.CustomDeviceContract.winmd
│ │ │ ├── Windows.Devices.Portable.PortableDeviceContract.winmd
│ │ │ ├── Windows.Devices.Printers.Extensions.ExtensionsContract.winmd
│ │ │ ├── Windows.Devices.Printers.PrintersContract.winmd
│ │ │ ├── Windows.Devices.Scanners.ScannerDeviceContract.winmd
│ │ │ ├── Windows.Devices.Sms.LegacySmsApiContract.winmd
│ │ │ ├── Windows.Foundation.FoundationContract.winmd
│ │ │ ├── Windows.Foundation.UniversalApiContract.winmd
│ │ │ ├── Windows.Gaming.Preview.GamesEnumerationContract.winmd
│ │ │ ├── Windows.Globalization.GlobalizationJapanesePhoneticAnalyzerContract.winmd
│ │ │ ├── Windows.Graphics.Printing3D.Printing3DContract.winmd
│ │ │ ├── Windows.Management.Deployment.Preview.DeploymentPreviewContract.winmd
│ │ │ ├── Windows.Management.Orchestration.OrchestrationContract.winmd
│ │ │ ├── Windows.Management.Workplace.WorkplaceSettingsContract.winmd
│ │ │ ├── Windows.Media.Capture.AppCaptureContract.winmd
│ │ │ ├── Windows.Media.Capture.CameraCaptureUIContract.winmd
│ │ │ ├── Windows.Media.Devices.CallControlContract.winmd
│ │ │ ├── Windows.Media.MediaControlContract.winmd
│ │ │ ├── Windows.Media.Playlists.PlaylistsContract.winmd
│ │ │ ├── Windows.Media.Protection.ProtectionRenewalContract.winmd
│ │ │ ├── Windows.Networking.Connectivity.WwanContract.winmd
│ │ │ ├── Windows.Networking.NetworkOperators.LegacyNetworkOperatorsContract.winmd
│ │ │ ├── Windows.Networking.Sockets.ControlChannelTriggerContract.winmd
│ │ │ ├── Windows.Security.EnterpriseData.EnterpriseDataContract.winmd
│ │ │ ├── Windows.Security.ExchangeActiveSyncProvisioning.EasContract.winmd
│ │ │ ├── Windows.Services.Maps.GuidanceContract.winmd
│ │ │ ├── Windows.Services.Maps.LocalSearchContract.winmd
│ │ │ ├── Windows.System.Profile.ProfileHardwareTokenContract.winmd
│ │ │ ├── Windows.System.Profile.ProfileRetailInfoContract.winmd
│ │ │ ├── Windows.System.Profile.SystemManufacturers.SystemManufacturersContract.winmd
│ │ │ ├── Windows.System.UserProfile.UserProfileContract.winmd
│ │ │ ├── Windows.System.UserProfile.UserProfileLockScreenContract.winmd
│ │ │ ├── Windows.UI.ApplicationSettings.ApplicationsSettingsContract.winmd
│ │ │ ├── Windows.UI.Core.AnimationMetrics.AnimationMetricsContract.winmd
│ │ │ ├── Windows.UI.Core.CoreWindowDialogsContract.winmd
│ │ │ ├── Windows.UI.Xaml.Hosting.HostingContract.winmd
│ │ │ ├── Windows.Web.Http.Diagnostics.HttpDiagnosticsContract.winmd
│ │ │ ├── Windows.WinMD
│ │ │ ├── 蓝牙传感器.exe
│ │ │ ├── 蓝牙传感器.exe.config
│ │ │ ├── 蓝牙传感器.pdb
│ │ │ ├── 蓝牙传感器.vshost.exe
│ │ │ ├── 蓝牙传感器.vshost.exe.config
│ │ │ └── 蓝牙传感器.vshost.exe.manifest
│ │ └── Release
│ ├── bluetooth_blue_128px_1071707_easyicon.net.ico
│ ├── bluetooth_blue_128px_1071707_easyicon.net.png
│ ├── BluetoothSensor.cs
│ ├── ChartManager.cs
│ ├── Form1.cs
│ ├── Form1.Designer.cs
│ ├── Form1.resx
│ ├── Gesture.cs
│ ├── obj
│ │ └── Debug
│ │ ├── DesignTimeResolveAssemblyReferences.cache
│ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
│ │ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
│ │ ├── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
│ │ ├── TempPE
│ │ ├── 蓝牙传感器.csproj.FileListAbsolute.txt
│ │ ├── 蓝牙传感器.csproj.GenerateResource.Cache
│ │ ├── 蓝牙传感器.csprojResolveAssemblyReference.cache
│ │ ├── 蓝牙传感器.exe
│ │ ├── 蓝牙传感器.Form1.resources
│ │ ├── 蓝牙传感器.pdb
│ │ └── 蓝牙传感器.Properties.Resources.resources
│ ├── packages.config
│ ├── Program.cs
│ ├── Properties
│ │ ├── AssemblyInfo.cs
│ │ ├── Resources.Designer.cs
│ │ ├── Resources.resx
│ │ ├── Settings.Designer.cs
│ │ └── Settings.settings
│ ├── RTXWXWorkPlugin_1.0.0.3.exe
│ ├── WavePlayer.cs
│ ├── 蓝牙传感器.csproj
│ └── 蓝牙传感器.csproj.user
└── 蓝牙传感器.sln
24 directories, 114 files
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论