Suggested minor change for libraries.
Posted: Tue Nov 29, 2011 9:55 am
I have noticed that a lot of customers have trouble getting the bit masks correct for things like the WaterChangePorts.
Why not add the following block of code to the ReefAngel_Globals.h file
Then people could do
instead of
Why not add the following block of code to the ReefAngel_Globals.h file
Code: Select all
#define Port8Bit 0x80
#define Port7Bit 0x40
#define Port6Bit 0x20
#define Port5Bit 0x10
#define Port4Bit 0x08
#define Port3Bit 0x04
#define Port2Bit 0x02
#define Port1Bit 0x01
Code: Select all
ReefAngel.WaterChangePorts = Port8Bit | Port4Bit | Port5Bit;Code: Select all
ReefAngel.WaterChangePorts = B10011000;