Use new APIs in the core

This commit is contained in:
Michal Moskal
2016-04-02 13:44:29 -07:00
parent 241da7fbed
commit 47d382135b
6 changed files with 128 additions and 154 deletions

View File

@ -8,7 +8,7 @@ namespace images {
//% weight=75 help=images/create-image
//% blockId=device_build_image block="create image"
Image createImage(ImageLiteral leds) {
return MicroBitImage(getbytes(leds)).clone().leakData();
return MicroBitImage(imageBytes(leds)).clone().leakData();
}
/**