Mapping a single bit of a bigger datum is at the moment not possible. We added this to our backlog. You have to read the datum manipulate it and then write it gain e.g. with the data layer library:
ctrlX CORE IDE app visual coding data layer library
You could also create a own function doing this in one single line.
For checking/manipulating single bits there are are currently no representations in the block area but only in the textual programming languages.
//% shim=common::setBit function setBit(value: number, bit: number): number;
//%
//% shim=common::clearBit function clearBit(value: number, bit: number): number;
//%
//% shim=common::testBit function testBit(value: number, bit: number): boolean;
//%
//% shim=common::toggleBit function toggleBit(value: number, bit: number): number;
... View more