Search code examples
lualua-tableesp32nodemcunodemcu-build

Can anybody please tell me how to set or reset a bit in lua..?


I want to perform set and reset of particular bit in a number. As I'm using lua 5.1 I can't able to use APIs and shifting operators so it is becoming more and more complex so please help me finding this


Solution

  • bit library is shipped with the firmware.

    Read the documentation: https://nodemcu.readthedocs.io/en/release/modules/bit/