B4R Question value 0b11111111 is rejected

candide

Active Member
Licensed User
in my case, i wanted to do something like in Arduino:
B4X:
myMCP.setPortMode(0b11111111,A)
but 0b11111111 is rejected...
0xFF is accepted, but do we have a way to use binary format ?
 

teddybear

Well-Known Member
Licensed User
in my case, i wanted to do something like in Arduino:
B4X:
myMCP.setPortMode(0b11111111,A)
but 0b11111111 is rejected...
0xFF is accepted, but do we have a way to use binary format ?
If you use it in B4R
Insert code:
myMCP.setPortMode(Bit.ParseInt("11111111",2),A)
 
Upvote 1
Top