GMU:Max and the World/Paulina Magdalena Chwala/Homework 3

From Medien Wiki
< GMU:Max and the World‎ | Paulina Magdalena Chwala
Revision as of 12:02, 3 June 2020 by Paulina.chw (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Hey, I tried finally to send data back from Max to arduino. I wanted to control rgb LED by using Max color switch. It's not my individual work. I still learn and follow turtorials, loops and codes from other people.

File:Hom 33.maxpat File:Hom 333.ino

Max My loop in Max is pretty simple, I add messages to the switch, to get the RGB coordinates of each color (I found it in Max Helper). After I unpacked the message, and converted it to send to Arduino. Than I connected to the Arduino port by using command serial c 115200 - to send different data.

Arduino I finally used a downloaded code, because mine didn't work. It incluses an external liblary "LED.h" and reads the values recieved from Max. It seperates it into 3 ( r g b) and assings each value to the right LED pin.