1 第一步:正确安装Keil软件,可以到ARM官网下载。安装后可以看到如下图标:2 其次需要安装nRF51 SDK,在<Keil>\ARM\Device\Nordic,在该路径下可以看到如下文件夹,分别是2块开发板对应资料:3 选择自己所用的开发板的编号,比如小编的是nrf51822,进入文件夹后可以看到如下信息:4 其中Board文件夹存储的是电路板...
Cold Chain Logistics in China a case study of a Chinese Food Manufacturer 热度: PROCESS MANAGEMENT: LEAN PRODUCTION and Six Sigma Quality Isuues In Supply Chain Management 热度: 题目:errorinincludechain(nrf_delay.h)expect... 在调试nRF51SDK示例工程时,常会遇到诸如errorininclude ...
#include <stdint.h> #include <stdio.h> #include "app_uart.h" #include "app_error.h" #include "nrf_delay.h" #include "nrf.h" #include "bsp.h" #if defined (UART_PRESENT) #include "nrf_uart.h" #endif #if defined (UARTE_PRESENT) #include "nrf_uarte.h" #endif //#define ENAB...
如果添加成功, 切换到配置导航选项卡configuarton wizard上,会出现对应配置被勾选,如下图所示的。 完成后编写main.c文件,详细内容如下: AI检测代码解析 #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include "app_uart.h" #include "app_error.h" #include "nrf_delay.h" #include "...
nrf_delay_ms(300); } } 这里得到温度,加速度,陀螺仪三个函数是改的原子的程序 void MPU_Get_Temperature(void) //读出摄氏度 { uint8_t buf[2]; short raw; float temp; char t[256]; mpu6050_register_read(MPU_TEMP_OUTH_REG,buf,2); ...
nrf_delay_ms(300); } int main(void) { pwm_config.num_channels = 1; pwm_config.gpio_num[0] = 7; // Start the external 16 MHz clock for a more accurate PWM frequency NRF_CLOCK->TASKS_HFCLKSTART = 1; //pwm_init(PWM_MODE_C); ...
delay(100); if(!digitalRead(sensor[which]))where=true; } return(where); } (2)发送字符串 将两个NRF模块设置为相同的通道后,准备2套Basra主控板和Bigfish扩展板,其中一套作为发送端,将send.ino下载到该主控板;另一套作为接收端,将receive.ino下载到该主控板。 例程源代码如下: send.ino Serial.begin(...
delay( 100 ); if( !digitalRead( sensor[ which ] ) ) where = true; } return( where ); } (2)发送字符串 将两个NRF模块设置为相同的通道后,准备2套Basra主控板和Bigfish扩展板,其中一套作为发送端,将send.ino下载到该主控板;另一套作为接收端,将receive.ino下载到该主控板。
#include <stdbool.h> #include <stdint.h> #include "nrf_delay.h" #include "boards.h" /* 包含log头文件 */ #include "nrf_log.h" #include "nrf_log_ctrl.h" #include "nrf_log_default_backends.h" /* 包含uart头文件 */ #include "app_uart.h" #if defined (UART_PRESENT) #include "...