ESPixelStick Firmware
Firmware for the ESPixelStick
Loading...
Searching...
No Matches
memdebug.h
Go to the documentation of this file.
1
#pragma once
2
#include <Arduino.h>
3
/*
4
// Use GPIO16 / Wemos D0 for hardware debug triggering
5
#define DEBUG_HW_PIN 16
6
#define DEBUG_HW_SET digitalWrite(DEBUG_HW_PIN, HIGH)
7
#define DEBUG_HW_CLEAR digitalWrite(DEBUG_HW_PIN, LOW)
8
#define DEBUG_HW_START do {pinMode(DEBUG_HW_PIN, OUTPUT); DEBUG_HW_CLEAR;} while(0)
9
#define DEBUG_HW_END do {DEBUG_HW_CLEAR; pinMode(DEBUG_HW_PIN, INPUT);} while(0)
10
*/
11
12
#ifndef LOG_PORT
13
#define LOG_PORT Serial
14
#endif
// ndef LOG_PORT
15
16
#define MYFILE String (__FILE__).substring(String (__FILE__).lastIndexOf ("\\") + 1)
17
18
#define DEBUG_V(v) {LOG_PORT.println(String("------ ") + String(FPSTR(__func__) ) + ":" + MYFILE + ":" + String(__LINE__ ) + ": " + String(v) + String(" ------")); LOG_PORT.flush();}
19
#define DEBUG_START DEBUG_V(F ("Start"))
20
#define DEBUG_END DEBUG_V(F ("End"))
include
memdebug.h
Generated by
1.12.0