switch debug on/off by pressing 4 keys on booting time
This commit is contained in:
4
print.h
4
print.h
@@ -1,9 +1,13 @@
|
||||
#ifndef PRINT_H__
|
||||
#define PRINT_H__ 1
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <avr/pgmspace.h>
|
||||
#include "usb_debug.h"
|
||||
|
||||
|
||||
bool print_enable;
|
||||
|
||||
// this macro allows you to write print("some text") and
|
||||
// the string is automatically placed into flash memory :)
|
||||
#define print(s) print_P(PSTR(s))
|
||||
|
Reference in New Issue
Block a user