Are you sure about that? Maybe I'm misunderstanding the question.
In 16/24/32 you get R,G and B channels handled separately (if you specify them), but in anything else it's considered that the image is a single channel, so setColor(123) for a BPP of 4 would write the value 123.
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.
Are you sure about that? Maybe I'm misunderstanding the question.
In 16/24/32 you get R,G and B channels handled separately (if you specify them), but in anything else it's considered that the image is a single channel, so
setColor(123)
for a BPP of 4 would write the value123
.