Demo entry 6745284

c

   

Submitted by anonymous on May 26, 2018 at 14:00
Language: C. Code size: 200 Bytes.

uint one_light[8]={254,253,251,247,239,223,191,127};
uint one_dark[8]={1,2,4,8,16,32,64,128};
uint *leds=0; //只有一个灯亮(低电平LED亮)

if(P0_0 == 0)
{//是否取反
	leds=one_light;
}
else
{leds=one_dark;}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).