How to use settings.writebuffer

Buffers in MakeCode usually are byte arrays. If you want to store an integer, then use settings.writeNumber() instead.

I wrote a brief tutuorial on using the settings namespace in JavaScript a while ago. Feel free to check it out for additional information.

If you have other questions, then feel free to ask.

1 Like