

	public link bit DS_OUT = DS.D0_OUT;
	public link bit DS_IN = DS.D0_IN;
	public link bit DS_DIR = DS.D0_DIR;
	
	
	
	#include "MEGA.txt"
	
	public int32 get_temperature()
	{
		//ȡһεĲ
		start_sd();
		//к
		write_byte( 0xcc );
		//ȡĴ
		write_byte( 0xbe );
		
		uint16 temp;
		temp.0(uint8) = read_byte();
		temp.8(uint8) = read_byte();
		
		//һβ
		start_sd();
		//к
		write_byte( 0xcc );
		//¶ת
		write_byte( 0x44 );
		
		//Ӧȴ500ms,ĵüӦô0.5
		//...
		return (int)temp;
	}
	//---------------------------------------------------
	///[i] function_void read_8byte_serial_number array;
	public void read_8byte_serial_number( [uint8*?] buffer )
	{
		start_sd();
		write_byte( 0x33 );
		
		uint8 i = 0;
		loop( 8 ) {
			buffer[i] = read_byte();
			i + 1;
		}
	}
	
	
	