{"action":"closed","issue":{"url":"https://api.github.com/repos/FastLED/FastLED/issues/209","labels_url":"https://api.github.com/repos/FastLED/FastLED/issues/209/labels{/name}","comments_url":"https://api.github.com/repos/FastLED/FastLED/issues/209/comments","events_url":"https://api.github.com/repos/FastLED/FastLED/issues/209/events","html_url":"https://github.com/FastLED/FastLED/issues/209","id":105467345,"number":209,"title":"FastLED 3.1 and Arduino Mega Issue (Arduino Leonardo works)","user":{"login":"kennyviperhk","id":4047303,"avatar_url":"https://avatars.githubusercontent.com/u/4047303?v=3","gravatar_id":"","url":"https://api.github.com/users/kennyviperhk","html_url":"https://github.com/kennyviperhk","followers_url":"https://api.github.com/users/kennyviperhk/followers","following_url":"https://api.github.com/users/kennyviperhk/following{/other_user}","gists_url":"https://api.github.com/users/kennyviperhk/gists{/gist_id}","starred_url":"https://api.github.com/users/kennyviperhk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kennyviperhk/subscriptions","organizations_url":"https://api.github.com/users/kennyviperhk/orgs","repos_url":"https://api.github.com/users/kennyviperhk/repos","events_url":"https://api.github.com/users/kennyviperhk/events{/privacy}","received_events_url":"https://api.github.com/users/kennyviperhk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-08T20:55:52Z","updated_at":"2015-09-09T16:11:03Z","closed_at":"2015-09-09T16:11:03Z","body":"#include \"FastLED.h\"\r\n\r\n\r\n#define NUM_LEDS_1 350\r\n\r\n#define DATA_PIN_1 10\r\n\r\n\r\n// Define the array of leds\r\nCRGB leds_1[NUM_LEDS_1];\r\n\r\nint e[4];\r\n\r\nvoid setup() {\r\n\r\n  FastLED.addLeds<WS2811, DATA_PIN_1, RGB>(leds_1, NUM_LEDS_1);\r\n\r\n  Serial.begin(115200);\r\n  e[0] = 0;\r\n  e[1] = 0;\r\n  e[2] = 0;\r\n  e[3] = 0;\r\n}\r\n\r\nvoid loop() {\r\n\r\n  if (Serial.available() > 3)\r\n  {\r\n    for (int i = 0; i < 4 ; i++)\r\n    {\r\n      e[i] = Serial.read();\r\n    }\r\n    Serial.flush();\r\n  }\r\n  leds_1[e[0]].setRGB(e[1], e[2], e[3]);\r\n  FastLED.show();\r\n}\r\n\r\n\r\n=========\r\nI have an Openframeworks software sending Serial Signal sending bytes of (Position, R, G, B) for controlling the LED array. \r\nThe usb Serial Communication works perfectly on Arduino Leonardo. \r\nHowever it doesn't get any signal on Mega 2560. the RX LED blinks but nothing happen. the Mega itself works fine with example code like Blink without Serial.\r\nAlso have tested with Mega 1280....the signal would get weird like wrong colours or skipping the signals.\r\n\r\nIs there a conflict with the Serial port?\r\n\r\nThanks in advance\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n"}}