lm35.c
来自「RFID读写卡程序」· C语言 代码 · 共 32 行
C
32 行
/*= lm35.c =========================================================================================
*
* Copyright (C) 2004 Nordic Semiconductor
*
* This file is distributed in the hope that it will be useful, but WITHOUT WARRANTY OF ANY KIND.
*
* Author(s): Ole Saether
*
* COMPILER:
*
* This program has been tested with Keil C51 V7.08 and 7.09
*
* $Revision: 3 $
*
*==================================================================================================
*/
#include <Nordic\reg9e5.h>
#include "util.h"
#include "lm35.h"
//void InitADC(void)
//{
// Configure and turn on ADC
// RACSN = 0;
// SpiReadWrite(WAC); // Write to ADC config
// SpiReadWrite(0x35); // Select AIN3, PWR_UP = 1, VFSEL=0;
// SpiReadWrite(0x0b); // Set RES_CTRL = 3, Right justified
// RACSN = 1;
//}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?