projet_pololu_et5_ees
Fork of FastIO by
Diff: FastIO.h
- Revision:
- 12:973e253323c9
- Parent:
- 11:327ae1d5fecb
- Child:
- 13:0e21ffc6cb84
diff -r 327ae1d5fecb -r 973e253323c9 FastIO.h --- a/FastIO.h Tue Dec 23 11:47:08 2014 +0000 +++ b/FastIO.h Mon May 04 16:42:39 2015 +0000 @@ -104,8 +104,7 @@ * @param pin pin the FastOut object should be used for * @param initial (optional) initial state of the pin after construction: default is 0 (low) */ - FastOut() { - FastInOut<pin>::FastInOut(); + FastOut() : FastInOut<pin>::FastInOut() { write(initial); SET_DIR_OUTPUT; } @@ -142,8 +141,7 @@ * @param pin pin the FastIn object should be used for * @param pinmode (optional) initial mode of the pin after construction: default is PullDefault */ - FastIn() { - FastInOut<pin>::FastInOut(); + FastIn() : FastInOut<pin>::FastInOut() { SET_MODE(pinmode); SET_DIR_INPUT; }