2021-09-12 18:27:59 索煒達(dá)電子 714
項(xiàng)目編號(hào):E1132
文件大小:1.3M
源碼說(shuō)明:帶中文注釋
開(kāi)發(fā)環(huán)境:C編譯器
簡(jiǎn)要概述:
STM32F103ZEUSB鼠標(biāo)源碼
在USB.c的最下面,有一個(gè)buff[4]數(shù)組,數(shù)組各元素的值表示鼠標(biāo)的各種動(dòng)作
buff[0]:
Bit0 :為 1 表示鼠標(biāo)左鍵按下
Bit1:為 1 表示鼠標(biāo)右鍵按下
buff[1]:鼠標(biāo)右移像素?cái)?shù),為正向右移,為負(fù)向左移
buff[2]:鼠標(biāo)上移像素?cái)?shù),為正向上移,為負(fù)向下移
buff[3]:鼠標(biāo)向下滾動(dòng)單位數(shù),為正向下滾動(dòng),為負(fù)向上滾動(dòng)
目錄│文件列表:
└ C_Student_059(USB)
│ EventRecorderStub.scvd
│ JLinkLog.txt
│ JLinkSettings.ini
│ main.c
│ USB.uvguix.Administrator
│ USB.uvguix.TF
│ USB.uvoptx
│ USB.uvprojx
├ DebugConfig
│ └ Target_1_STM32F103ZE_1.0.0.dbgconf
├ Listings
│ │ startup_stm32f10x_hd.lst
│ └ USB.map
├ Objects
│ │ delay.crf
│ │ delay.d
│ │ delay.o
│ │ ExtDll.iex
│ │ gpio_stm32f10x.crf
│ │ gpio_stm32f10x.d
│ │ gpio_stm32f10x.o
│ │ main.crf
│ │ main.d
│ │ main.o
│ │ misc.crf
│ │ misc.d
│ │ misc.o
│ │ retarget_io.crf
│ │ retarget_io.d
│ │ retarget_io.o
│ │ startup_stm32f10x_hd.d
│ │ startup_stm32f10x_hd.o
│ │ stm32f10x_gpio.crf
│ │ stm32f10x_gpio.d
│ │ stm32f10x_gpio.o
│ │ stm32f10x_rcc.crf
│ │ stm32f10x_rcc.d
│ │ stm32f10x_rcc.o
│ │ stm32f10x_tim.crf
│ │ stm32f10x_tim.d
│ │ stm32f10x_tim.o
│ │ system_stm32f10x.crf
│ │ system_stm32f10x.d
│ │ system_stm32f10x.o
│ │ timer.crf
│ │ timer.d
│ │ timer.o
│ │ USB.axf
│ │ USB.build_log.htm
│ │ usb.crf
│ │ usb.d
│ │ USB.htm
│ │ USB.lnp
│ │ usb.o
│ │ USB.sct
│ └ USB_Target 1.dep
├ RTE
│ ├ Device
│ │ └ STM32F103ZE
│ │ │ RTE_Device.h
│ │ │ startup_stm32f10x_hd.s
│ │ │ stm32f10x_conf.h
│ │ └ system_stm32f10x.c
│ └ _Target_1
│ └ RTE_Components.h
├ SYSTEM
│ ├ delay
│ │ │ delay.c
│ │ └ delay.h
│ ├ sys
│ │ │ sys.c
│ │ └ sys.h
│ └ usart
│ │ usart.c
│ └ usart.h
├ timer
│ │ Timer.c
│ └ Timer.h
└ USB
│ USB.c
└ USB.h