登录
首页 » c » ATK-HC05蓝牙串口模块代码

ATK-HC05蓝牙串口模块代码

于 2022-01-25 发布 文件大小:2.98 MB
0 120
下载积分: 2 下载次数: 1

代码说明:

开发蓝牙模块实用教程。主要功能是实现蓝牙数据传输,自动搜索可连接蓝牙的设备。通过LCD显示蓝牙当前的状态,确定周围可接入设备的情况!代码包括蓝牙的底层数据收发的逻辑;应用简单,实用性强安全可靠

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • zi
    说明:  自由曲面光学透镜的图像变换面形测量系统与精度建模(Free-form optical lens image transformation shape measurement system with precision modeling)
    2013-03-07 09:08:13下载
    积分:1
  • wpf滑动效果 实例源码
    鼠标拖动时 控件滑动 截图: 核心代码:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows;using System.Windows.Controls;using System.Windows.Data;using System.Windows.Documents;using System.Windows.Input;using System.Windows.Media;using System.Windows.Media.Imaging;using System.Windows.Navigation;using System.Windows.Shapes;using System.Windows.Media.Animation;namespace FlashPrac2{ /// /// MainWindow.xaml 的交互逻辑 /// public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); } /// /// 完成缓冲效果 /// /// 起始位置 /// 目标位置 /// 加速加速度 /// 减速加速度 /// 持续时间 private void DoMove(DependencyProperty dp, double to, double ar, double dr, double duration) { DoubleAnimation doubleAnimation = new DoubleAnimation();//创建双精度动画对象 doubleAnimation.To = to;//设置动画的结束值 doubleAnimation.Duration = TimeSpan.FromSeconds(duration);//设置动画时间线长度 doubleAnimation.AccelerationRatio = ar;//动画加速 doubleAnimation.DecelerationRatio = dr;//动画减速 doubleAnimation.FillBehavior = FillBehavior.HoldEnd;//设置动画完成后执行的操作 grdTransfer.BeginAnimation(dp, doubleAnimation);//设置动画应用的属性并启动动画 } private double pressedX; /// /// 点击鼠标,记录鼠标单击的位置 /// /// /// private void grdTest_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e) { ////获得鼠标点击的X坐标 pressedX = e.GetPosition(cvsGround).X; } ////鼠标释放时的操作 private void grdTest_PreviewMouseLeftButtonUp(object sender, MouseButtonEventArgs e) { double transferLeft = Convert.ToDouble(grdTransfer.GetValue(Canvas.LeftProperty)); //btn1.Content = transferLeft.ToString(); if (transferLeft > 0) { transferLeft = 0; } if (this.Width - transferLeft > cvsGround.Width) { transferLeft = this.Width - cvsGround.Width; } ////获得鼠标释放时的位置 double releasedX = e.GetPosition(cvsGround).X; ////获得距离间隔 double interval = releasedX - pressedX; pressedX = 0; ////计算出传送带要的目标位置 double to = transferLeft interval; ////移动 //btn1.Content = transferLeft.ToString() " " to.ToString(); // btn1.Content = transferLeft.ToString() " " to.ToString(); DoMove(Canvas.LeftProperty, to, 0.1, 0.5, 0.5); } }}
    2014-06-24下载
    积分:1
  • PIC8单片机ADC应用
    #include volatile unsigned char adresult; void ADC_Sample(unsigned char adch); void DelayXms(unsigned char x); #define _DEBUG //调试程序用 /********************************************************** 函数名称:AD_Sample 函数功能:AD检测 入口参数:adch - 检测通道 出口参数:无  备    注:采样通道需自行设置为模拟口      采样10次,取中间八次的平均值为采样结果存于adresult中 **********************************************************/ void ADC_Sample(unsigned char adch) { static unsigned int adsum = 0; static unsigned char admin = 0,admax = 0; static unsigned char adtimes = 0; ADCON1 = 0; //左对齐 ADCON0 = 0X41 | (adch
    2022-01-25 15:00:46下载
    积分:1
  • 自定义winform窗体设计器(创建自己的设计界面)
    介绍如何使用.net自身的组件设计时支持的源代码项目 使用拖动进行界面设计,属性窗口对控件进行设置
    2023-06-03 05:20:03下载
    积分:1
  • fo
    说明:  自动控制窗帘,51单片机 protuse仿真(Automatic control curtains, 51 microcontroller protuse in simulation)
    2013-01-17 21:02:14下载
    积分:1
  • kongjianhoufangjiaohui
    空间后方交会c++源代码,欢迎广大同胞下载(Space resection c++ source code, welcome compatriots download)
    2013-09-04 19:36:39下载
    积分:1
  • no-person-drive-car
    中设计的无人驾驶电动汽车(图1)是集无人驾驶技术、 四轮独立电驱动技术和底盘电子控制技术于一体的智能电动 汽车 (In the design of unmanned electric vehicles (Figure 1) is a driverless technology, four-wheel independent electric drive technology and chassis electronic control technology in one of the smart electric vehicles)
    2011-11-26 13:35:10下载
    积分:1
  • chap3-simulator
    说明:  滑动窗口协议模拟。项目要求的所有功能应可视,要有简单的界面。由一台PC (或线程)向另一台PC(或线程)发送数据包时,界面应显示出双方 帧个数的变化,帧序号,发送和接受速度,暂停或重传提示等,界面 中必须动态显示数据帧的发送和接受情况,包括在相应的窗口详细显 示相应的ACK和其他收发数据帧后发出的消息,以表明模拟协议的正 确运作过程。在各种情况下,接受方和发送方窗口应实时显示帧的发 送和接受情况,包括序号,时间戳,内容等。以及窗口的填充和清空 情况。(sliding window)
    2010-04-14 13:41:26下载
    积分:1
  • wav端点检测
    语音信号端点检测实验,可以将wav文件中的语音部分和静音部分区别开静音部分去除,并保存成.pcm格式的文件
    2022-01-31 09:17:09下载
    积分:1
  • KTVdiange
    KTV的电个。你知道不知道。知道不这些的我觉得你好象不,。你不是。你不了解年一不知道,你知道胜利马上。我不觉得。 你好象,没但是你。 
    2022-03-01 01:35:23下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载