Mon 2019.07.01
Hi @user101402, I just Googled 'how to set a bit javascript' and result set is with examples:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Bitwise_Operators https://www.w3schools.com/js/js_bitwise.asp
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Bitwise_Operators
https://www.w3schools.com/js/js_bitwise.asp
If needed, creating a wrapper function should be a trivial exercise.
If Javascript is a new language for you, the above two links are excellent reference sites to hangout and peruse. The syntax is the same as in Arduino using either C/C++
See "Bitwise Operators" under the "Structure" heading at:
https://www.arduino.cc/reference/en/#functions https://www.cprogramming.com/tutorial/bitwise_operators.html
https://www.arduino.cc/reference/en/#functions
https://www.cprogramming.com/tutorial/bitwise_operators.html
@Robin started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Mon 2019.07.01
Hi @user101402, I just Googled 'how to set a bit javascript' and result set is with examples:
If needed, creating a wrapper function should be a trivial exercise.
If Javascript is a new language for you, the above two links are excellent reference sites to hangout and peruse.
The syntax is the same as in Arduino using either C/C++
See "Bitwise Operators" under the "Structure" heading at: