Bitwise integer operations for micro:bit MakeCode (AND, OR, XOR, NOT).
Language:
TypeScript
Created:
12.07.2022
Updated:
19.07.2022
Stars:
0
Visit on GitHub
Bitwise integer operations for micro:bit MakeCode.
let x = bitwise.and(0x1014, 0x10) // x === 0x10
let y = bitwise.or(0x1000, 0x10) // y === 0x1010
let z = bitwise.xor(0x1014, 0x10) // z === 0x1004
let n = bitwise.not(0x1000) // n === -0x1001
The extension is MIT licensed (https://tldrlegal.com/license/mit-license). This licensing is easy to understand and use and ensures sustainability.