文件名称:01128013
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 467kb
- 下载次数:
- 0次
- 提 供 者:
- 张*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
7S系列上四按键模拟鼠标程序
代码的效果:这个代码是针对AT9S1AM7S64-IAR那个板的,在这个代码里只要将4个按键和4个LED的定义改一下,改成你的板上真真的定义.比如你的按键是接在那个I/O上的.
然后运行程序,在超级终端里,你按一下第一按键,PC机的鼠标向左移动一下,一直按着的话,鼠标一会就跑到屏幕最左边了,同时LED一直灭着(按一下LED闪一下),第2个按键是向右的效果,第三个是向上的效果,第四个是向下的效果.好玩不?好好研究一下代码吧-7S series of four buttons on the mouse analog of the effect of code: This code is AT9S1AM7S64-IAR board that, in this code will be 4 years as long as four LED button and change the definition, the board changed Zhenzhen of you definition. such as the button you are then at the I/O on the. then run the program, in HyperTerminal, you click the first button, PC machines left mouse click, according to what has been, on one mouse went to the left of the screen, while the LED has been out with (click LED flash), the first two keys are the right effect, and the third is the effect of upward, the fourth-down effects are. not fun? a good look at your code
代码的效果:这个代码是针对AT9S1AM7S64-IAR那个板的,在这个代码里只要将4个按键和4个LED的定义改一下,改成你的板上真真的定义.比如你的按键是接在那个I/O上的.
然后运行程序,在超级终端里,你按一下第一按键,PC机的鼠标向左移动一下,一直按着的话,鼠标一会就跑到屏幕最左边了,同时LED一直灭着(按一下LED闪一下),第2个按键是向右的效果,第三个是向上的效果,第四个是向下的效果.好玩不?好好研究一下代码吧-7S series of four buttons on the mouse analog of the effect of code: This code is AT9S1AM7S64-IAR board that, in this code will be 4 years as long as four LED button and change the definition, the board changed Zhenzhen of you definition. such as the button you are then at the I/O on the. then run the program, in HyperTerminal, you click the first button, PC machines left mouse click, according to what has been, on one mouse went to the left of the screen, while the LED has been out with (click LED flash), the first two keys are the right effect, and the third is the effect of upward, the fourth-down effects are. not fun? a good look at your code
(系统自动生成,下载前可以参看下载内容)
下载文件列表
AT91SAM7S-BasicUSB
..................\compil
..................\......\BasicUSB.mcp
..................\......\Basic_ICE.dat
..................\......\CVS
..................\......\...\Entries
..................\......\...\Entries.Log
..................\......\...\Repository
..................\......\...\Root
..................\......\...\Tag
..................\......\sam7.html
..................\......\SrcArm
..................\......\......\board.h
..................\......\......\Cstartup.s
..................\......\......\Cstartup_SAM7.c
..................\......\......\CVS
..................\......\......\...\Entries
..................\......\......\...\Repository
..................\......\......\...\Root
..................\......\......\...\Tag
..................\......\......\retarget.c
..................\......\tools.html
..................\CVS
..................\...\Entries
..................\...\Entries.Log
..................\...\Repository
..................\...\Root
..................\...\Tag
..................\HTML
..................\....\AT91_title.html
..................\....\basic.html
..................\....\CVS
..................\....\...\Entries
..................\....\...\Repository
..................\....\...\Root
..................\....\...\Tag
..................\main.html
..................\PC exec
..................\.......\atm6124.Inf
..................\.......\atm6124.sys
..................\.......\atm6124ser.inf
..................\.......\BasicUSB_6124.exe
..................\.......\BasicUSB_6124.ilk
..................\.......\BasicUSB_6124.pdb
..................\.......\CVS
..................\.......\...\Entries
..................\.......\...\Entries.Log
..................\.......\...\Repository
..................\.......\...\Root
..................\.......\...\Tag
..................\.......\pc_application
..................\.......\..............\BasicUSB_6124.cpp
..................\.......\..............\BasicUSB_6124.dsp
..................\.......\..............\BasicUSB_6124.dsw
..................\.......\..............\BasicUSB_6124.ncb
..................\.......\..............\BasicUSB_6124.opt
..................\.......\..............\BasicUSB_6124.plg
..................\.......\..............\CVS
..................\.......\..............\...\Entries
..................\.......\..............\...\Repository
..................\.......\..............\...\Root
..................\.......\..............\...\Tag
..................\.......\..............\ReadMe.txt
..................\.......\..............\StdAfx.cpp
..................\.......\..............\StdAfx.h
..................\.......\..............\USBLibrary.h
..................\.......\pc_dll
..................\.......\......\CVS
..................\.......\......\...\Entries
..................\.......\......\...\Repository
..................\.......\......\...\Root
..................\.......\......\...\Tag
..................\.......\......\guid829.h
..................\.......\......\StdAfx.cpp
..................\.......\......\StdAfx.h
..................\.......\......\USBLibrary.cpp
..................\.......\......\USBLibrary.dsp
..................\.......\......\USBLibrary.dsw
..................\.......\......\USBLibrary.exp
..................\.......\......\USBLibrary.h
..................\.......\......\USBLibrary.lib
..................\.......\......\USBLibrary.ncb
..................\.......\......\USBLibrary.opt
..................\.......\......\USBLibrary.plg
..................\.......\USBLibrary.dll
..................\.......\USBLibrary.exp
..................\.......\USBLibrary.lib
..................\src
..................\...\cdc_enumerate.c
..................\...\cdc_enumerate.h
..................\...\CVS
..................\...\...\Entries
..................\...\...\Repository
..................\...\...\Root
..................\...\...\Tag
..................\...\dbgu.c
..................\...\dbgu.h
..................\...\interrupt_Usart.c
..................\...\main.c
..................\compil
..................\......\BasicUSB.mcp
..................\......\Basic_ICE.dat
..................\......\CVS
..................\......\...\Entries
..................\......\...\Entries.Log
..................\......\...\Repository
..................\......\...\Root
..................\......\...\Tag
..................\......\sam7.html
..................\......\SrcArm
..................\......\......\board.h
..................\......\......\Cstartup.s
..................\......\......\Cstartup_SAM7.c
..................\......\......\CVS
..................\......\......\...\Entries
..................\......\......\...\Repository
..................\......\......\...\Root
..................\......\......\...\Tag
..................\......\......\retarget.c
..................\......\tools.html
..................\CVS
..................\...\Entries
..................\...\Entries.Log
..................\...\Repository
..................\...\Root
..................\...\Tag
..................\HTML
..................\....\AT91_title.html
..................\....\basic.html
..................\....\CVS
..................\....\...\Entries
..................\....\...\Repository
..................\....\...\Root
..................\....\...\Tag
..................\main.html
..................\PC exec
..................\.......\atm6124.Inf
..................\.......\atm6124.sys
..................\.......\atm6124ser.inf
..................\.......\BasicUSB_6124.exe
..................\.......\BasicUSB_6124.ilk
..................\.......\BasicUSB_6124.pdb
..................\.......\CVS
..................\.......\...\Entries
..................\.......\...\Entries.Log
..................\.......\...\Repository
..................\.......\...\Root
..................\.......\...\Tag
..................\.......\pc_application
..................\.......\..............\BasicUSB_6124.cpp
..................\.......\..............\BasicUSB_6124.dsp
..................\.......\..............\BasicUSB_6124.dsw
..................\.......\..............\BasicUSB_6124.ncb
..................\.......\..............\BasicUSB_6124.opt
..................\.......\..............\BasicUSB_6124.plg
..................\.......\..............\CVS
..................\.......\..............\...\Entries
..................\.......\..............\...\Repository
..................\.......\..............\...\Root
..................\.......\..............\...\Tag
..................\.......\..............\ReadMe.txt
..................\.......\..............\StdAfx.cpp
..................\.......\..............\StdAfx.h
..................\.......\..............\USBLibrary.h
..................\.......\pc_dll
..................\.......\......\CVS
..................\.......\......\...\Entries
..................\.......\......\...\Repository
..................\.......\......\...\Root
..................\.......\......\...\Tag
..................\.......\......\guid829.h
..................\.......\......\StdAfx.cpp
..................\.......\......\StdAfx.h
..................\.......\......\USBLibrary.cpp
..................\.......\......\USBLibrary.dsp
..................\.......\......\USBLibrary.dsw
..................\.......\......\USBLibrary.exp
..................\.......\......\USBLibrary.h
..................\.......\......\USBLibrary.lib
..................\.......\......\USBLibrary.ncb
..................\.......\......\USBLibrary.opt
..................\.......\......\USBLibrary.plg
..................\.......\USBLibrary.dll
..................\.......\USBLibrary.exp
..................\.......\USBLibrary.lib
..................\src
..................\...\cdc_enumerate.c
..................\...\cdc_enumerate.h
..................\...\CVS
..................\...\...\Entries
..................\...\...\Repository
..................\...\...\Root
..................\...\...\Tag
..................\...\dbgu.c
..................\...\dbgu.h
..................\...\interrupt_Usart.c
..................\...\main.c