C candide Active Member Licensed User Jul 1, 2023 #1 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 ?
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 Jul 2, 2023 #2 candide said: 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 ? Click to expand... If you use it in B4R Insert code: myMCP.setPortMode(Bit.ParseInt("11111111",2),A) Upvote 1
candide said: 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 ? Click to expand... If you use it in B4R Insert code: myMCP.setPortMode(Bit.ParseInt("11111111",2),A)
C candide Active Member Licensed User Jul 2, 2023 #3 yes, thanks teddybaer, i use also this palliative solution, but is not clean like 0b11111111. Upvote 0
teddybear Well-Known Member Licensed User Jul 3, 2023 #4 candide said: yes, thanks teddybaer, i use also this palliative solution, but is not clean like 0b11111111. Click to expand... I don't think the 0b11111111 is valid format in b4x. Upvote 0
candide said: yes, thanks teddybaer, i use also this palliative solution, but is not clean like 0b11111111. Click to expand... I don't think the 0b11111111 is valid format in b4x.