led_flash.h
来自「这是应用在AVR单片机上的小型操作系统。在任务级别运行。成功运行在ATmega1」· C头文件 代码 · 共 30 行
H
30 行
//LED_FLASH.h : header file for the MySch project
//
///////////////////////////////////////////////////////
//用于测试闪灯代码
//#ifndef _LED_FLASH_H_
//#define _LED_FLASH_H_
#ifndef __AVR_ATmega16__
#define __AVR_ATmega16__
#endif
#include <io.h>
#include <wdt.h>
#include <sleep.h>
#include <Interrupt.h>
#include <sig-avr.h>
#include <inttypes.h>
/////////////////////////////////////////////////////////////////////////////
//MySch
// Misc #defines
#define LED_ON sbi(PORTB,0)
#define LED_OFF cbi(PORTB,0)
#define LED_ON1 sbi(PORTB,1)
#define LED_OFF1 cbi(PORTB,1)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?