-
I was trying to experiment with the first example from the BLE keyboard tutorial. However, at this point, even with BlE + Programmable on in Settings, with HID set to Off, I can't connect to the Bangle. I've tried a ton of stuff - BTN1+BTN2, resetting settings, updating firmware, etc. Is there anything I can do from here to not have an unprogrammable device?
-
-
I looked into this some more, and it looks hardcoded. Is there any way to access the
graphicsInternal
object from JS? -
-
-
I was trying to use a image background for a clock. In order to prevent flickering, I wanted to use a buffer. However, when I draw the image background on the buffer, the image's colors are shifted.
With a buffer (brown colors):let buf = Graphics.createArrayBuffer(120, 120, 4); buf.drawImage( require("heatshrink").decompress(atob("nk84f/gkhkkh4cYosp8kY0cQ8kg4kYi+A5ds2E4Ap+1qkN23LgVFAp+1gXbtmxgAFP3dBtuy4eQhYFP+k240DoOsAp9O3dioHEhX+Ap9LyFwtlA0AFPomEyEG7ncsgFPoExzdt5cAAp/EgNh23ZqO0Ap9Ii1bluKjYFPwmDsu8jOh4gFPgE2gnhxEiAp+OgnAhEEh1OAp9Dg0biFI4AFPoNAOgMYwOBAp8XwHLtmwnAFP2tUhu25cCooFP2sC7ds2MAAp+7oNt2XDyELAp/0m3GgdB1gFPp27sVA4kK/wFPpeQuFsoGgAp9EwmQg3c7lkAp9AmObtvLgAFP4kBZwPZqO0Ap9Ii1bluKjYFPwmDsu8jOh4gFPgE2gnhxEiAp+OgnAhEEh1OAp9Dg0biFI4AFPoNAOgMYwOBAp8XwHLtmwnAFP2tUhu25cCooFP2sC7ds2MAAp+7oNt2XDyELAp/0m3GgdB1gFPp27sVA4kK/wFPpeQuFsoGgAp9EwmQg3c7lkAp9AmObtvLgCzP2kBZwPZqK5QpEWrctxUbWZ+0wdl3kZ0PLWZ8Am0E8OIkSzQgnAhEEhy5QocGjcQpHAWZ9BoCGBjGBwizPU4q5FApPFU4lEXIi/FAoinFXIoFJxanEgi5E4gFJU4q5FApOOU4q5FApKnFXIoFJoinEsK5EwIFJU4q5FApKnF2q5EooFJU4q5FApO0U4nLXIkLApIA==")), 0, 0, { scale: 2 } ); g.drawImage( buf, 0, 0, {scale: 2} );
Drawing directly to the screen (intended colors):
g.drawImage( require("heatshrink").decompress(atob("nk84f/gkhkkh4cYosp8kY0cQ8kg4kYi+A5ds2E4Ap+1qkN23LgVFAp+1gXbtmxgAFP3dBtuy4eQhYFP+k240DoOsAp9O3dioHEhX+Ap9LyFwtlA0AFPomEyEG7ncsgFPoExzdt5cAAp/EgNh23ZqO0Ap9Ii1bluKjYFPwmDsu8jOh4gFPgE2gnhxEiAp+OgnAhEEh1OAp9Dg0biFI4AFPoNAOgMYwOBAp8XwHLtmwnAFP2tUhu25cCooFP2sC7ds2MAAp+7oNt2XDyELAp/0m3GgdB1gFPp27sVA4kK/wFPpeQuFsoGgAp9EwmQg3c7lkAp9AmObtvLgAFP4kBZwPZqO0Ap9Ii1bluKjYFPwmDsu8jOh4gFPgE2gnhxEiAp+OgnAhEEh1OAp9Dg0biFI4AFPoNAOgMYwOBAp8XwHLtmwnAFP2tUhu25cCooFP2sC7ds2MAAp+7oNt2XDyELAp/0m3GgdB1gFPp27sVA4kK/wFPpeQuFsoGgAp9EwmQg3c7lkAp9AmObtvLgCzP2kBZwPZqK5QpEWrctxUbWZ+0wdl3kZ0PLWZ8Am0E8OIkSzQgnAhEEhy5QocGjcQpHAWZ9BoCGBjGBwizPU4q5FApPFU4lEXIi/FAoinFXIoFJxanEgi5E4gFJU4q5FApOOU4q5FApKnFXIoFJoinEsK5EwIFJU4q5FApKnF2q5EooFJU4q5FApO0U4nLXIkLApIA==")), 0, 0, { scale: 4 } );
Is there any way to make the colors be the intended ones?
-
-
-
-
I finally recovered with the technique from http://forum.espruino.com/conversations/369983/.