I made up a more easy way to connect Isadora and Arduino.
First I need to do is write a program for Arduino
------------------------------------------------
int digiPin = 3; // This number will decide the input digital pin
int val = 0; // just a variable for calculation
void setup()
{
Serial.begin(9600); // serial speed
}
void loop()
{
val = digitalRead(digiPin); // read the input pin
Serial.println(99,BYTE);
/*
99 = c It is ASCII Any world is fine as long as match with Isadora,
BYTE indicate 2-bit it seems critical, since other commend did not work.
*/
Serial.println(val); // actual data which will be sent
delay(1000); // control frequency
}
----------------------------------------------
The next step is to run Isadora
Prepare "serial in watcher binary"
Double click it and open a window
type in followings
---------------------------------------------
"c"
value_2 : integer = 2 digits
---------------------------------------------
c must be a small c not a large C
Any word is fine for "value_2"
Since this program deal with 2-bit, the number 2 before digits can be omitted.
Setup serial seed and port.
Make sure serial is enabled.
It should be OK
0 件のコメント:
コメントを投稿