Is there no binary formatter "B"?

Hi,
I am used to send some bits to statusregisters by setting my variable in Arduino like that:
int var = B11001100;
So the “B” sets the binary formatter, but it looks like the Particle IDE doesn’t support this. Of course I could translate everything in Hex or Dec, but Binary would be nice. Is there anything I can do to get the “B”?
Thanks,
Marc

The plain “B” syntax is an Arduino invention but Particle uses a standard C type of notation:

int var = 0b11001100;
4 Likes

Thank you!

1 Like