〒619-0237 京都府相楽郡精華町光台8丁目
TEL. 070-5263-2200
jun@kinet-tv.ne.jp
/*------------------------------------------------------------------------------------------------------------------------------------------------------- LED1 を点灯させる。 File Name : led_01.c -------------------------------------------------------------------------------------------------------------------------------------------------------*/ #define LEDX ( * ( volatile unsigned char * ) 0xB8000003 ) void main(void) { while(1) { LEDX = 0x01; } } //------------------------------------------------------------------------------------------------------------------ |
/*------------------------------------------------------------------------------------------------------------------------------------------------------- LED1、LED2、LED7、LED8 を点灯させる。 File Name : led_02.c -------------------------------------------------------------------------------------------------------------------------------------------------------*/ #define LEDX ( * ( volatile unsigned char * ) 0xB8000003 ) void main(void) { while(1) { LEDX = 0xc3; } } //------------------------------------------------------------------------------------------------------------------ |