led.h
来自「msp430 based mms memory card reader,incl」· C头文件 代码 · 共 23 行
H
23 行
/* * ---------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 43): * Rolf Freitag (webmaster at true-random.com) wrote this file. * As long as you retain this notice you can do whatever * the LGPL (Lesser GNU public License) allows with this stuff. * If you think this stuff is worth it, you can send me money via * paypal or if we met some day you can buy me a beer in return. * ---------------------------------------------------------------------------- */#ifndef _LED_H#define _LED_H#include <msp430x14x.h>#define GREEN_LED_ON() P4OUT |= 0x02#define GREEN_LED_OFF() P4OUT &= ~0x02#define RED_LED_ON() P4OUT |= 0x01#define RED_LED_OFF() P4OUT &= ~0x01void initLED(void);#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?