• 大小: 8.29MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-10-10
  • 语言: 其他
  • 标签: 库文件  arduino  

资源简介

arduino常用的库文件

资源截图

代码片段和文件信息

//************************************************************************
//* Arduino Test Suite
//* (C) 2010 by Mark Sproul
//* Open source as per standard Arduino code
//*
//*   This library is free software; you can redistribute it and/or
//*   modify it under the terms of the GNU Lesser General Public
//*   License as published by the Free Software Foundation; either
//*   version 2.1 of the License or (at your option) any later version.
//*
//*   This library is distributed in the hope that it will be useful
//*   but WITHOUT ANY WARRANTY; without even the implied warranty of
//*   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
//*   Lesser General Public License for more details.
//************************************************************************
//* Aug 31 2010  Started on TestArduino
//* Oct 18 2010  Added memory testing
//************************************************************************

#include
#include
#include



#include “ArduinoTestSuite.h“


#include “WProgram.h“
#include “HardwareSerial.h“
#include “pins_arduino.h“


#include “avr_cpunames.h“

#if defined(USART3_RX_vect)
#define SERIAL_PORT_COUNT 4
#elif  defined(USART1_RX_vect)
#define SERIAL_PORT_COUNT 2
#else
#define SERIAL_PORT_COUNT 1
#endif




//************************************************************************
enum 
{
ATS_Manufacturer = 1
ATS_CPU
ATS_GCC_version
ATS_LIBC_version
ATS_CompiledDate
ATS_TestSuiteName
ATS_FreeMemory


};
unsigned long gTestStartTime;
short gTagIndent;
int gYotalErrors;
int gTestCount;



prog_char gTextMsg_Manufacturer[] PROGMEM = “MANUFACTURER“;
prog_char gTextMsg_CPUname[] PROGMEM = “CPU-NAME“;
prog_char gTextMsg_GCC_VERSION[] PROGMEM = “GCC-Version“;
prog_char gTextMsg_AVR_LIBC[] PROGMEM = “AVR-LibC-Ver“;
prog_char gTextMsg_COMPILED_DATE[] PROGMEM = “Compiled-date“;
prog_char gTextMsg_TEST_SUITE_NAME[] PROGMEM = “Test-Suite-Name“;
prog_char gTextMsg_memoryUsage[] PROGMEM = “Free-memory“;
prog_char gTextMsg_dotdotdot[] PROGMEM = “... “;
prog_char gTextMsg_ok[] PROGMEM = “ok“;
prog_char gTextMsg_FAIL[] PROGMEM = “FAIL“;
prog_char gTextMsg_spaceEqual[] PROGMEM = “ = “;
prog_char gTextMsg_info[] PROGMEM = “info.“;
prog_char gTextMsg_dashLine[] PROGMEM = “--------------------------“;
prog_char gTextMsg_DigitalRW[] PROGMEM = “DigitalReadWrite_“;
prog_char gTextMsg_PWMoutput[] PROGMEM = “PWMoutput_“;
prog_char gTextMsg_AnalogInput[] PROGMEM = “AnalogInput_“;

//************************************************************************
void Serial_print_P(prog_char *flashMemStr)
{
char theChar;
int ii;

ii = 0;
#if (FLASHEND > 0x10000)
while (theChar = pgm_read_byte_far(flashMemStr + ii++))
#else
while (theChar = pgm_read_byte_near(flashMemStr + ii++))
#endif
{
Serial.print(theChar

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      16194  2010-12-24 15:48  libraries\ArduinoTestSuite\ArduinoTestSuite.cpp

     文件       1873  2010-12-24 15:48  libraries\ArduinoTestSuite\ArduinoTestSuite.h

     文件       7067  2010-12-24 15:48  libraries\ArduinoTestSuite\avr_cpunames.h

     文件       1927  2010-12-24 15:48  libraries\ArduinoTestSuite\examples\ATS_Constants\ATS_Constants.pde

     文件       2386  2010-12-24 15:48  libraries\ArduinoTestSuite\examples\ATS_Delay\ATS_Delay.pde

     文件       2024  2010-12-24 15:48  libraries\ArduinoTestSuite\examples\ATS_General\ATS_General.pde

     文件       2965  2010-12-24 15:48  libraries\ArduinoTestSuite\examples\ATS_SD_File\ATS_SD_File.pde

     文件       3432  2010-12-24 15:48  libraries\ArduinoTestSuite\examples\ATS_SD_Files\ATS_SD_Files.pde

     文件       3299  2010-12-24 15:48  libraries\ArduinoTestSuite\examples\ATS_SD_Seek\ATS_SD_Seek.pde

     文件       1394  2010-12-24 15:48  libraries\ArduinoTestSuite\examples\ATS_Skeleton\ATS_Skeleton.pde

     文件       3187  2010-12-24 15:48  libraries\ArduinoTestSuite\examples\ATS_StringIndexOfMemory\ATS_StringIndexOfMemory.pde

     文件       5934  2010-12-24 15:48  libraries\ArduinoTestSuite\examples\ATS_StringTest\ATS_StringTest.pde

     文件       5937  2010-12-24 15:48  libraries\ArduinoTestSuite\examples\ATS_ToneTest\ATS_ToneTest.pde

     文件       5595  2016-11-09 17:06  libraries\BalanceCar\BalanceCar.cpp

     文件       1106  2016-11-09 17:05  libraries\BalanceCar\BalanceCar.h

     文件      14514  2016-11-09 17:04  libraries\BalanceCar\examples\bst_abc\bst_abc\bst_abc.ino

     文件      12176  2016-11-09 17:03  libraries\BalanceCar\examples\bst_abc\bst_abc.ino

     文件      17791  2012-09-03 21:25  libraries\DallasTemperature\DallasTemperature.cpp

     文件       5972  2010-02-17 09:15  libraries\DallasTemperature\DallasTemperature.h

     文件       4326  2009-12-02 15:08  libraries\DallasTemperature\examples\Alarm\Alarm.pde

     文件       3931  2009-12-02 16:16  libraries\DallasTemperature\examples\AlarmHandler\AlarmHandler.pde

     文件       4727  2009-12-02 15:21  libraries\DallasTemperature\examples\Multiple\Multiple.pde

     文件        928  2009-12-02 15:50  libraries\DallasTemperature\examples\Simple\Simple.pde

     文件       3992  2009-12-02 16:00  libraries\DallasTemperature\examples\Single\Single.pde

     文件       3653  2009-12-02 15:33  libraries\DallasTemperature\examples\Tester\Tester.pde

     文件       1290  2010-02-17 09:13  libraries\DallasTemperature\keywords.txt

     文件       1850  2010-02-17 09:21  libraries\DallasTemperature\README

     文件      18664  2017-06-28 14:38  libraries\DallasTemperature.zip

     文件       1653  2012-02-21 10:54  libraries\DFR_Key\DFR_Key.cpp

     文件        529  2012-02-21 10:54  libraries\DFR_Key\DFR_Key.h

............此处省略1081个文件信息

评论

共有 条评论