NANO100_BSP V3.04.002
The Board Support Package for Nano100BN Series
Macros | Functions
NuEdu-Basic01_LED.c File Reference
#include <stdio.h>
#include "Nano100Series.h"
#include "NuEdu-Basic01_LED.h"
Include dependency graph for NuEdu-Basic01_LED.c:

Go to the source code of this file.

Macros

#define LED1_ON   PB0=0
 
#define LED2_ON   PB1=0
 
#define LED3_ON   PE9=0
 
#define LED4_ON   PE10=0
 
#define LED5_ON   PE11=0
 
#define LED6_ON   PD8=0
 
#define LED7_ON   PD9=0
 
#define LED8_ON   PC7=0
 
#define LED1_OFF   PB0=1
 
#define LED2_OFF   PB1=1
 
#define LED3_OFF   PE9=1
 
#define LED4_OFF   PE10=1
 
#define LED5_OFF   PE11=1
 
#define LED6_OFF   PD8=1
 
#define LED7_OFF   PD9=1
 
#define LED8_OFF   PC7=1
 

Functions

void initial_led (void)
 Set LED GPIO to output mode. More...
 
void LED_on (unsigned int temp)
 This function turn on LED numbers to open or close. More...
 
void initial_close (void)
 Set LED GPIO to input mode. More...