dev.UnlimitedHand.com
Processing用 UnlimitedHand リファレンス (関数)
名前:
updatePhotoSensors()
説明:
'c'という文字をシリアルポートに書き込み, フォトリフレクタの値を読み込む.
返り値:
int[]
引数:
N/A
例:
import UnlimitedHand.*; import processing.core.*; import processing.serial.*; UnlimitedHand uh; void setup(){ size(400, 300); //please check the console window of Processing, //if you change portNum. uh = new UnlimitedHand(this, 3); //By using the Constuctor, Setup the Serial Connection //UnlimitedHand( PApplet p, int portNum ) noLoop(); } void draw(){ } void mousePressed(){ print("Photo Sernsors Array: "); println(uh.updatePhotoSensors()); }