Skip to main content

New answers tagged

0 votes

Differences between P1SEL |= BIT5 + BIT6 vs P1SEL= BIT5 | BIT6 in embedded C

Two differences need to be considered. Assignment operator vs assignment P1SEL |= ... uses the assignment operator |=. This is a ...
the busybee's user avatar
  • 3,640
1 vote

How does the LM358 works in this IR proximity sensor?

Here is a typical AliExpress hobbyist proximity detector module. I don't see that anyone has published a schematic so I'll produce one below: simulate this circuit – Schematic created using ...
Spehro 'speff' Pefhany's user avatar
1 vote

sprintf suddenly stops working

char temp[4]; sprintf(temp, "%d,", (uint8_t)98); comment: In the actual code, strlen of a global array was being printed (via sprintf) onto destination ...
Marcus Müller's user avatar

Top 50 recent answers are included