Processing + Media art1 빛의 밝기에 따른 오브젝트 크기 변경 flow 아두이노와 라이트 센서를 연결하여 값을 확인함. 센서의 값을 시리얼통신으로 전송 processing에서 센서의 값을 parsing함 센서의 값이 커질수록 정육면체의 크기가 커짐 아두이노 code int light = 0; void setup() { // put your setup code here, to run once: Serial.begin(9600); } void loop() { // put your main code here, to run repeatedly: light = analogRead(A1); Serial.print(light); Serial.print(","); delay(500); } processing code import processing.serial.*; Serial .. 2019. 11. 26. 이전 1 다음