zoukankan      html  css  js  c++  java
  • 【nRF51822蓝牙开发笔记】点亮LED灯

    /******************** (C) COPYRIGHT 2014 ???? ********************
     * ÎļþÃû  :main
     * ÃèÊö    :
     * ÊÔÑéÆ½Ì¨:  nRF51822À¶ÑÀ¿ª·¢°å  
     * ÃèÊö    : 
     * ×÷Õß    :Ð¥·ç
     * ²©¿Í    :
    **********************************************************************/
    
    
    
    #include <stdbool.h>
    #include <stdint.h>
    #include "nrf_delay.h"
    #include "nrf_gpio.h"
    #include "led.h"
    
    int main(void)
    {
      // Configure LED-pins as outputs
      LED_Init();
      
      // LED 0 and LED 1 blink alternately.
      while(true)
      {
        LED1_Open();
        LED2_Close();
        
        nrf_delay_ms(500);
        
        LED2_Open();
        LED1_Close();
        
        nrf_delay_ms(500);
      }
    }
    
     
    
    /**************************End of XF-Studio*******************************/
    

      

  • 相关阅读:
    测试中发现哪些bug
    兼容性测试
    接口测试基础
    Java基础概念
    Linux基础命令
    Selenium笔记
    常见软件测试类型分类
    性能测试类型
    网络基础题目
    常见测试方法
  • 原文地址:https://www.cnblogs.com/xiaofeng6636/p/4053296.html
Copyright © 2011-2022 走看看