writesda.c
来自「AT90S8515读写AT17C010源程序」· C语言 代码 · 共 13 行
C
13 行
// WriteSDA.c
#include "at17c.h"
void WriteSDA(unsigned char state) {
if (state)
DDRB &= 0xfe; // input ... pullup will pull high or slave will drive low
else
DDRB |= 0x01; // output ... port latch will drive low
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?