This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

#define confussion!



Hey..I'm new at programming and MSP430..I want to ask a question..When i look at the push button led program , every programmer use this decleration:

#define LED BIT0   // P1.0

Here im really confused about that..i think this decleration means for me BIT0 will equal LED variable in the program. But why in this decleration LED variable equal to 0x0001 ? I did not do it 1...it's first value should be 0 for i did not give it any value..I hope i was able to understant my confussion.. Thanks in advance!

**Attention** This is a public forum