登录
首页 » VC » 并口I2C

并口I2C

于 2022-01-31 发布 文件大小:2.23 kB
0 113
下载积分: 2 下载次数: 1

代码说明:

根据I2C协议编写并口I2C通信代码(支持单个数据或多个数据读写操作),速率可调整。

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

发表评论

0 个回复

  • VC++ 6.0 使用消息实现线程通信
    线程通信:使用消息实现线程通信,一个了解多线程与消息通信的例子,以下是实现的主要代码:   LRESULT CThreadCommunicationDlg::OnDisplayResult(WPARAM wParam,LPARAM lParam)   {    int nResult = (int)wParam;    SetDlgItemInt(IDC_STATIC_RESULT,nResult,FALSE);    return 0;   }   void CThreadCommunicationDlg::OnButtonCalculate()   {    m_pCalculateThread=    (CCalculateThread*)AfxBeginThread(RUNTIME_CLASS(CCalculateThread));    Sleep(200);    m_pCalculateThread->PostThreadMessage(WM_CALCULATE,m_nLastOperand,NULL);   }   完整的源代码请下载本源码包。
    2022-02-02 07:06:27下载
    积分:1
  • C
    说明:  在本书的开篇,我们首先介绍c语言,主要是通过实际程序引入c语言的基本元素,至于其中的具体细节(Opening in this book, we first introduce the c language, mainly through actual application introduction of the basic elements of the c language, as for the details )
    2013-12-03 22:56:30下载
    积分:1
  • Read_STL
    STL是三维模型常用的文件格式。对STL文件进行读取和显示,是对模型进行后续操作的前提。在对STL文件格式进行详细分析的基础上,以VC+-I-作为开发平台;利用C++标准lO库的ifstream类型定义对象并绑定STL文件;再用标准库string类型中的getline逐行读取绑定的STL文件;最后,应用OpenGL中绘制三角面片编程技术实现对STL文件格式的直观显示。通过试验验证了读取和显示效果。(STL is a commonly used file format for 3D models. Reading and displaying the STL file is a prerequisite for the subsequent operation of the model. In the STL file format on the basis of a detailed analysis to VC+-I- as a development platform use C++ standard lO library ifstream type definition object and bind STL file and then the standard library string type getline line by line read Bound STL file Finally, the use of OpenGL in the drawing of triangulation programming technology to achieve STL file format intuitive display. Experiments verify the read and display results.)
    2017-04-13 16:01:37下载
    积分:1
  • VC++ MFC绘图打印技术范例
    VC++ 6.0 基于MFC的绘图及打印技术实例,附上了完整源码,打开程序后,可单击“测试”按钮,弹出绘图设置窗口,设置好参数绘图,然后打印出数据。方法步骤:   //创建画笔C++对象   CPen* pPenBlue = new CPen;   //创建画笔   pPenBlue->CreatePen(PS_SOLID,pDoc->m_thick,pDoc->m_color);   //选中当前画笔,并保存以前的画笔   CPen* pOldPen = pDC->SelectObject(pPenBlue);   POSITION posi=pDoc->m_PointList.GetHeadPosition();   while(posi)   {    CPoint point(pDoc->m_PointList.GetNext(posi));    pDC->Ellipse(point.x,point.y,point.x+    pDoc->m_long,point.y+pDoc->m_short);   }   //恢复旧画笔   pDC->SelectObject(pOldPen);   //删除新建的画笔对象   delete pPenBlue;   //设置映射模式   pDC->SetMapMode(MM_ANISOTROPIC);   CSize winSize = CSize(1024, 768);   //设定窗口大小   pDC->SetWindowExt(winSize);   //得到实际设备每逻辑英寸的象素数量   int xLogPixPerInch,yLogPixPerInch;   xLogPixPerInch=pDC->GetDeviceCaps(LOGPIXELSX);   yLogPixPerInch=pDC->GetDeviceCaps(LOGPIXELSY);   //得到设备坐标和逻辑坐标的比例   int xExt,yExt;   xExt=winSize.cx*xLogPixPerInch/96;   yExt=winSize.cy*yLogPixPerInch/96;   //设定视口大小   pDC->SetViewportExt(xExt,yExt);
    2022-01-25 14:09:09下载
    积分:1
  • vccode
    这是VC++深入详解的代码,非常齐全。可以方便大家下载参考(This is the depth Xiangjie VC++ code, very complete. You can easily download information)
    2010-07-29 07:57:33下载
    积分:1
  • SeeNotACD
    使用Visual C++和MFC制作的,类似ACDSee的看图软件,支持BMP,GIF,PCX,TGA,JPG等多种图像文件格式。速度快,运行稳定,可以作为大型图像处理系统的一部分。(The use of Visual C++ And MFC produced similar pictures of ACDSee software, support for BMP, GIF, PCX, TGA, JPG and other image file formats. Fast and stable operation can be used as large-scale image processing system.)
    2007-08-04 13:50:44下载
    积分:1
  • 《C++编程思想》英文版
    《C++编程思想》 英文版本 第二版(Thinking in C++ English Version Two)
    2019-03-07 20:17:44下载
    积分:1
  • 美河制作.程序设计语言实践之路
    程序设计语言处于计算机科学的中心,也处于计算机科学课程体系的中心。(Programming language is at the center of computer science and computer science curriculum system.)
    2019-02-24 21:33:38下载
    积分:1
  • VC++ .NET 实现窗口内控件自适应屏幕尺寸大小而变化
    VC++ .NET 实现窗口内控件自适应屏幕尺寸大小而变化,这个具体点就是,窗口中的边框和按钮等元素,会随着窗口的变大自动变大,并保持原有的比例,调用了CSelfResizeWindow::Rectify()来实现,我觉得是个很实用的窗体设计技巧。关于本源代码的几点说明:   自定义类CSelfResizeWindow实现窗口和控件的自适应,根据屏幕尺寸调整大校   使用步骤 :   1. 使需要自适应的窗口类继承于类CSelfResizeWindow,在OnInitDialog()中调用    __super::Init(this, 1, 3000);(其中1和3000是资源ID的范围,在Resource.h    中用宏定义的,Init函数的参数根据情况确定。)   2. 给窗口类添加OnSize()消息响应函数,在OnSize()函数    中调用__super::Rectify();即可。
    2023-01-25 01:40:04下载
    积分:1
  • VC摹仿手写字的源码
    VC摹仿手写字的源码。大家来看看,共同探讨。(VC imitate handwritten word source. You see, and explore together.)
    2021-04-28 19:18:43下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载