add: much
This commit is contained in:
parent
7b6ee283c6
commit
cbb4ac7a86
15 changed files with 159 additions and 56 deletions
|
|
@ -1,7 +1,10 @@
|
|||
#ifndef CONTROLLER_WIRING_DEBUG_H
|
||||
#define CONTROLLER_WIRING_DEBUG_H
|
||||
|
||||
#ifdef WIRING_PI_DEBUG
|
||||
|
||||
#define wiringPiSetup() printf("Setting up wiringPi....\n")
|
||||
#define pinMode(x,y) printf("pinMode(%d, %d)\n",x,y)
|
||||
#define digitalWrite(x,y) printf("digitalWrite(%d, %d)\n",x,y)
|
||||
|
||||
#define wiringPiSetup() LOG_INFO("wiringP wiringPiSetup()")
|
||||
#define pinMode(x,y) LOG_INFO("wiringPi pinMode(%d, %d)", x, y)
|
||||
#define digitalWrite(x,y) LOG_INFO("wiringPi digitalWrite(%d, %d)", x, y)
|
||||
#endif
|
||||
|
||||
#endif /* CONTROLLER_WIRING_DEBUG_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue