lpcware

Beginner question about GPIO

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by btheuma on Tue Sep 15 03:58:59 MST 2015
Can someone please explain to me the difference between :

LPC_GPIO0->FIOSET |= 1<<3;

and

LPC_GPIO0->FIOSET = 1<<3;

I know that the first one sets bit 3, but what does the second statement with the equal (=) sign do ?

Thanks.

Outcomes