This commit is contained in:
MultiMote 2015-02-14 20:49:46 +03:00
parent a41861a8f4
commit d67539af00

View File

@ -14,7 +14,7 @@
#define PIN_OFF(port,pin) ((PORT ## port) &= ~_BV(P ## port ## pin)) #define PIN_OFF(port,pin) ((PORT ## port) &= ~_BV(P ## port ## pin))
// Sets pin of port to 0 // Sets pin of port to value
// //
// Example for PD2: PIN_SET(D, 2, 1) // Example for PD2: PIN_SET(D, 2, 1)
#define PIN_SET(port,pin,val) (val > 0 ? PIN_ON(port,pin) : PIN_OFF(port,pin)) #define PIN_SET(port,pin,val) (val > 0 ? PIN_ON(port,pin) : PIN_OFF(port,pin))