Firmware2020. 2. 4. 11:26

General purpose input/output

 

 

#define LED_1 13

nrf_gpio_cfg_output(LED_1); 
nrf_gpio_pin_write(LED_1, 1);

 

기본적인 13번핀을 아웃풋 설정하는 함수와 디지털 설정하는 함수.

'Firmware' 카테고리의 다른 글

nrf52840 uart  (0) 2020.02.04
nRF51 Timer(1)  (0) 2017.12.14
Keil nRF51 간단한 쌍방향 통신.  (0) 2017.12.13
Posted by