资源简介

一期的已经发布过。但是有很多不良限制。最近有时间,重新写了整个接口框架。使用起来就更简单了。通过KeyScanCallBack响应按键消息。支持单击,双击,长按。而且用户可以自定义各个时间定义,io定义。在开发板测试通过

资源截图

代码片段和文件信息

/*******************************************************************************
  Filename:       board_key.c
  Revised:        $Date: 2014-03-10 07:29:12 -0700 (Mon 10 Mar 2014) $
  Revision:       $Revision: 37597 $

  Description:    This file contains the interface to the SRF06EB Key Service.

  Copyright 2014 - 2015 Texas Instruments Incorporated. All rights reserved.

  IMPORTANT: Your use of this Software is limited to those specific rights
  granted under the terms of a software license agreement between the user
  who downloaded the software his/her employer (which must be your employer)
  and Texas Instruments Incorporated (the “License“).  You may not use this
  Software unless you agree to abide by the terms of the License. The License
  limits your use and you acknowledge that the Software may not be modified
  copied or distributed unless embedded on a Texas Instruments microcontroller
  or used solely and exclusively in conjunction with a Texas Instruments radio
  frequency transceiver which is integrated into your product.  Other than for
  the foregoing purpose you may not use reproduce copy prepare derivative
  works of modify distribute perform display or sell this Software and/or
  its documentation for any purpose.

  YOU FURTHER ACKNOWLEDGE AND AGREE THAT THE SOFTWARE AND DOCUMENTATION ARE
  PROVIDED 揂S IS? WITHOUT WARRANTY OF ANY KIND EITHER EXPRESS OR IMPLIED 
  INCLUDING WITHOUT LIMITATION ANY WARRANTY OF MERCHANTABILITY title 
  NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL
  TEXAS INSTRUMENTS OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER CONTRACT
  NEGLIGENCE STRICT LIABILITY CONTRIBUTION BREACH OF WARRANTY OR OTHER
  LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES
  INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL SPECIAL INDIRECT PUNITIVE
  OR CONSEQUENTIAL DAMAGES LOST PROFITS OR LOST DATA COST OF PROCUREMENT
  OF SUBSTITUTE GOODS TECHNOLOGY SERVICES OR ANY CLAIMS BY THIRD PARTIES
  (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF) OR OTHER SIMILAR COSTS.

  Should you have any questions regarding your right to use this Software
  contact Texas Instruments Incorporated at www.TI.com. 
*******************************************add by seekwok*************************/
#include 
#include 
#include 

#include “nordic_common.h“
#include “nrf.h“
#include “app_error.h“
#include “ble.h“
#include “ble_hci.h“
#include “ble_srv_common.h“
#include “ble_advdata.h“
#include “ble_advertising.h“
#include “ble_conn_params.h“
#include “nrf_sdh.h“
#include “nrf_sdh_soc.h“
#include “nrf_sdh_ble.h“
#include “app_timer.h“
#include “fds.h“
#include “peer_manager.h“
#include “bsp_btn_ble.h“
#include “ble_conn_state.h“
#include “nrf_ble_gatt.h“

#include “nrf_log.h“
#include “nrf_log_ctrl.h“
#include “nrf_log_default_backends.h“
#include “nrf_drv_gpiote.h“
#include “nordic

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件        8417  2019-08-24 16:27  52810_key\best_board_key.c
     文件        4852  2019-08-24 16:23  52810_key\best_board_key.h
     文件        7525  2019-08-24 16:27  52810_key\best_key_mag.c
     文件        1376  2019-07-02 15:09  52810_key\best_key_mag.h
     文件        4246  2019-08-24 16:20  52810_key\best_ticket.c
     文件        2832  2019-07-17 09:39  52810_key\best_ticket.h
     文件        2684  2019-08-24 16:28  52810_key\demo.c
     目录           0  2019-08-24 16:28  52810_key\

评论

共有 条评论