open(FlashTransfer) - Version: 571

Description

The open(FlashTransfer) function put’s the TouchShield into a dormant state, while it waits for images to be transferred from the Aardvark. This function will only accept 24-bit .bmp files.

Mike has written a blog article on transferring images using Aardvark and the TouchShield.

Syntax


open(FlashTransfer);


Parameters

FlashTransfer – Receive images from the IDE via the TouchShield’s serial link.

Returns

none

Example

PImage battlePic; //Create an image

void setup() {
background(0); //set the entire screen to black

open(FlashTransfer); //Waits for the IDE to send files to TouchShield’s flash storage. Comment this line out out after uploading.
battlePic = loadImage(“battle.bmp”); //read the uploaded image file from memory

image(battlePic,0,0); //paint image at pixel location (0,0)
}

void loop() {
// Do nothing!
}

Related

FlashTransfer





Edit History