Quantcast
Channel: MSP430 Technical Forums
Viewing all articles
Browse latest Browse all 2077

digitalWrite (P1_0, 1); vs bitSet(P1OUT,P1_0);

$
0
0

Hi

 

Doing my first step with my LP I can't get the instruction :

bitSet(P1OUT,P1_0);

working.

 

It should be equivalent to "digitalWrite (P1_0, 1);" but the previous instruction don't light up the led !

 

Do I do something wrong ?

 

The same happen with "P1OUT |= (1<<P1_0)". I can't get the led on !


Viewing all articles
Browse latest Browse all 2077

Trending Articles