{"action":"created","issue":{"url":"https://api.github.com/repos/rwaldron/johnny-five/issues/969","labels_url":"https://api.github.com/repos/rwaldron/johnny-five/issues/969/labels{/name}","comments_url":"https://api.github.com/repos/rwaldron/johnny-five/issues/969/comments","events_url":"https://api.github.com/repos/rwaldron/johnny-five/issues/969/events","html_url":"https://github.com/rwaldron/johnny-five/issues/969","id":118989135,"number":969,"title":"Led.Digits not working with my 8-Digit LED Display Segment","user":{"login":"idophir","id":3186686,"avatar_url":"https://avatars.githubusercontent.com/u/3186686?v=3","gravatar_id":"","url":"https://api.github.com/users/idophir","html_url":"https://github.com/idophir","followers_url":"https://api.github.com/users/idophir/followers","following_url":"https://api.github.com/users/idophir/following{/other_user}","gists_url":"https://api.github.com/users/idophir/gists{/gist_id}","starred_url":"https://api.github.com/users/idophir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idophir/subscriptions","organizations_url":"https://api.github.com/users/idophir/orgs","repos_url":"https://api.github.com/users/idophir/repos","events_url":"https://api.github.com/users/idophir/events{/privacy}","received_events_url":"https://api.github.com/users/idophir/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-26T07:31:42Z","updated_at":"2015-11-26T15:50:58Z","closed_at":null,"body":"I've spent a few hours on this and I can't get my 8-Digit LED Display Module to work. No matter what character I try to draw or print it just prints random illegible characters or nothing.\r\n\r\nI purchased my board in China but it works fine with the snippet below. What am I doing wrong?\r\nIs there a way to send arduino code to the board from within the johnny-five project?\r\n\r\n\r\n```\r\n// Pin numbers\r\nint rck = 4; // clock\r\nint sck = 3; // cs\r\nint dio = 2; // data\r\n\r\n// Binary for 0 to 9\r\nbyte num[10]={B11000000, B11111001, B10100100, B10110000,\r\nB10011001, B10010010, B10000010, B11111000, B10000000, B10011000};\r\n\r\n// Positions\r\nbyte pos[8]={1, 2, 4, 8, 16, 32, 64, 128};\r\n\r\nvoid setup() {\r\n  pinMode(rck, OUTPUT);\r\n  pinMode(sck, OUTPUT);\r\n  pinMode(dio, OUTPUT);\r\n}\r\n\r\nvoid loop() {\r\n  for (int j = 0; j < 8; j++) {\r\n    digitalWrite(rck, LOW);\r\n    shiftOut(dio, sck, MSBFIRST, pos[j]);\r\n    shiftOut(dio, sck, MSBFIRST, num[j]);\r\n    digitalWrite(rck, HIGH);  \r\n    delay(2); // This keeps the flicker above 60 Hz\r\n  }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/rwaldron/johnny-five/issues/comments/159945803","html_url":"https://github.com/rwaldron/johnny-five/issues/969#issuecomment-159945803","issue_url":"https://api.github.com/repos/rwaldron/johnny-five/issues/969","id":159945803,"user":{"login":"rwaldron","id":27985,"avatar_url":"https://avatars.githubusercontent.com/u/27985?v=3","gravatar_id":"","url":"https://api.github.com/users/rwaldron","html_url":"https://github.com/rwaldron","followers_url":"https://api.github.com/users/rwaldron/followers","following_url":"https://api.github.com/users/rwaldron/following{/other_user}","gists_url":"https://api.github.com/users/rwaldron/gists{/gist_id}","starred_url":"https://api.github.com/users/rwaldron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwaldron/subscriptions","organizations_url":"https://api.github.com/users/rwaldron/orgs","repos_url":"https://api.github.com/users/rwaldron/repos","events_url":"https://api.github.com/users/rwaldron/events{/privacy}","received_events_url":"https://api.github.com/users/rwaldron/received_events","type":"User","site_admin":false},"created_at":"2015-11-26T15:50:58Z","updated_at":"2015-11-26T15:50:58Z","body":"`draw` method is for matrix devices (long story about how they all came to have the same backing class). Try this instead:\r\n\r\n```js   \r\ndisplay.print(\"88888888\");\r\n```\r\n"}}