/
dmitry.kartashov
/
Arduino
Обзор
Документация
Войти
/
dmitry.kartashov
/
Arduino
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
libraries/DebugUtilities.cpp
34 строки
626 B
Paul Richards
v0.01
16 май 2013, 06:36
16 май 2013, 06:36
ff57934
Код
Авторство
О чём код?
// Comment out next line to remove debugging // Note: Debugging can significantly increase the project response time #define DEBUGIT #include "DebugUtilities.h" DebugUtilities::DebugUtilities () { } // Print a string from program memory void DebugUtilities::printPSTR ( PGM_P s) { #ifdef DEBUGIT char c; while ((c=pgm_read_byte(s++)) != 0) Serial.print (c); #endif } void DebugUtilities::showNumber ( PGM_P s, int number ) { #ifdef DEBUGIT printPSTR ( s ); Serial.println ( number ); #endif } bool DebugUtilities::debugging () { #ifdef DEBUGIT return true; #else return false; #endif }