repeat.c

来自「Outputs messages to a 2line LCD」· C语言 代码 · 共 25 行

C
25
字号
/************************************************************ Controls LED 4 on the STK200. Simply toggles the state of LED 4 every time it runs. Uses ReRunMe to requeue itself each time. ************************************************************/#include "stdafx.h"
#include <avrstdio.h>#include "multi.h"#include	"multest.h"static UNSIGNED state;void Continous(void) {	UNSIGNED val;	state = ~state;	val = (UNSIGNED)inp(PORTB);	val &= 0xef;	val |= state & 0x10;  	outp(PORTB, val);   ReRunMe(4);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?