Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "nrf.h"
- #include "nrf_gpio.h"
- #include "nrf_delay.h"
- #define HTR2 5
- #define GRN 6
- #define RED 7
- #define FAN1 2
- #define Fan2 3
- int main (void)
- {
- nrf_gpio_cfg_output(HTR2);
- nrf_gpio_pin_clear(HTR2);
- nrf_gpio_cfg_output(FAN1);
- nrf_gpio_pin_clear(FAN1);
- nrf_gpio_cfg_output(Fan2);
- nrf_gpio_pin_clear(Fan2);
- while(1)
- {
- nrf_gpio_pin_toggle(HTR2);
- //nrf_delay_ms(5000);
- nrf_gpio_pin_toggle(GRN);
- //nrf_delay_ms(1000);
- nrf_gpio_pin_toggle(FAN1);
- //nrf_delay_ms(5000);
- nrf_gpio_pin_toggle(Fan2);
- //nrf_delay_ms(5000);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement