Complete

4.0 devices need to use createBufferBitmaps() 

Venu2/2s is missing Graphics.BufferedBitmap

It seems that the BufferedBitmap isn't available in the simulator when compiling for the Venu2 / 2s.

When running the code below in.a glance I get  "Error: Symbol Not Found Error" despite the "(Toybox.Graphics has :BufferedBitmap)" test returning true.

if (Toybox.Graphics has :BufferedBitmap) {
    if (chart == null) {
        chart = new Graphics.BufferedBitmap({:width=>dc.getWidth() - locX,
                                             :height=>dc.getHeight() - locY,
                                             :palette=>[Graphics.COLOR_DK_GRAY, BG_COLOR, 0xffffff,
                                                        0x0055ff, 0x00ff00, 0xffff55, 0xff5555, 0xff0000]} );
    }
}
               

I'm running the latest version of the SDK (4.0.3) and get the same error on the previous versions of the 4.x SDK

Parents Comment Children