# HG changeset patch # User Giulio Moro # Date 1431367127 -3600 # Node ID 83baffda57865e8127adde4f5222a403410523f6 # Parent 06fd2ffee60534a411071e254c1ec963a9673bf9 Fixed bug in Digital macros and in example project diff -r 06fd2ffee605 -r 83baffda5786 include/Utilities.h --- a/include/Utilities.h Mon May 11 11:45:03 2015 +0100 +++ b/include/Utilities.h Mon May 11 18:58:47 2015 +0100 @@ -29,14 +29,18 @@ #define getBit(word,bit) (((word)>>(bit))&1) #define changeBit(word,bit,value) ((clearBit((word),(bit))) | ((value)<<(bit))) //digital API: -#define setDigitalDirectionFrame(pin,frame,direction) digital[(frame)]=changeBit(digital[(frame)],(pin),(direction)) -#define setDigitalDirection(pin,frame,direction) (for(int _privateI=(frame);_privateI