open(FlashTransfer) - Version: 569

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

The FlashTransfer mode.

Returns

none

Example

PImage battlePic; //Create an image

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

open(FlashTransfer); //for the TouchShield to wait and receive files
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