{"action":"created","issue":{"url":"https://api.github.com/repos/hzeller/rpi-rgb-led-matrix/issues/79","labels_url":"https://api.github.com/repos/hzeller/rpi-rgb-led-matrix/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/hzeller/rpi-rgb-led-matrix/issues/79/comments","events_url":"https://api.github.com/repos/hzeller/rpi-rgb-led-matrix/issues/79/events","html_url":"https://github.com/hzeller/rpi-rgb-led-matrix/issues/79","id":114731492,"number":79,"title":"led image ","user":{"login":"rami2820","id":10954972,"avatar_url":"https://avatars.githubusercontent.com/u/10954972?v=3","gravatar_id":"","url":"https://api.github.com/users/rami2820","html_url":"https://github.com/rami2820","followers_url":"https://api.github.com/users/rami2820/followers","following_url":"https://api.github.com/users/rami2820/following{/other_user}","gists_url":"https://api.github.com/users/rami2820/gists{/gist_id}","starred_url":"https://api.github.com/users/rami2820/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rami2820/subscriptions","organizations_url":"https://api.github.com/users/rami2820/orgs","repos_url":"https://api.github.com/users/rami2820/repos","events_url":"https://api.github.com/users/rami2820/events{/privacy}","received_events_url":"https://api.github.com/users/rami2820/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-03T02:48:52Z","updated_at":"2015-11-12T03:02:19Z","closed_at":null,"body":"Hi,\r\n\r\nThere was color, chains and output issues.\r\nThe color problem is solved. but I do not know hardly comes as a chain strangely.\r\n\r\nModify the source code is shown below.\r\nlib/frame-internal.h \r\nsource code:\r\n\r\nunion IoBits {\r\n      struct {\r\n        // This bitset reflects the GPIO mapping. The naming of the\r\n        // pins of type 'p0_r1' means 'first parallel chain, red-bit one'\r\n        //                                 GPIO Header-pos\r\n\r\n        unsigned int unused_0_1     : 2;  //  0..1  (only on RPi 1, Revision 1)\r\n        unsigned int p2_g1          : 1;  //  2 P1-03 (masks SDA when parallel=3)\r\n        unsigned int p2_b1          : 1;  //  3 P1-05 (masks SCL when parallel=3)\r\n        unsigned int strobe         : 1;  //  4 P1-07\r\n        unsigned int p1_g1          : 1;  //  5 P1-29 (only on A+/B+/Pi2)\r\n        unsigned int p1_b1          : 1;  //  6 P1-31 (only on A+/B+/Pi2)\r\n        // TODO: be able to disable chain 0 for higher-pin RPis to gain SPI back.\r\n        unsigned int p0_b1          : 1;  //  7 P1-26 (masks: SPI0_CE1)\r\n        unsigned int p0_r2          : 1;  //  8 P1-24 (masks: SPI0_CE0)\r\n        unsigned int p0_g2          : 1;  //  9 P1-21 (masks: SPI0_MISO\r\n        unsigned int p0_b2          : 1;  // 10 P1-19 (masks: SPI0_MOSI)\r\n        unsigned int p0_r1          : 1;  // 11 P1-23 (masks: SPI0_SCKL)\r\n\r\n        unsigned int p1_r1          : 1;  // 12 P1-32 (only on A+/B+/Pi2)\r\n        unsigned int p1_g2          : 1;  // 13 P1-33 (only on A+/B+/Pi2)\r\n        unsigned int p2_r1          : 1;  // 14 P1-08 (masks TxD when parallel=3)\r\n        unsigned int unused_15      : 1;  // 15 P1-10 (RxD) - kept free.\r\n        unsigned int p2_g2          : 1;  // 16 P1-36 (only on A+/B+/Pi2)\r\n\r\n        unsigned int clock          : 1;  // 17 P1-11\r\n\r\n        unsigned int output_enable  : 1;  // 18 P1-12 (PWM pin: our timing)\r\n\r\n        unsigned int p1_r2          : 1;  // 19 P1-35 (only on A+/B+/Pi2)\r\n        unsigned int p1_b2          : 1;  // 20 P1-38 (only on A+/B+/Pi2)\r\n        unsigned int p2_b2          : 1;  // 21 P1-40 (only on A+/B+/Pi2)\r\n\r\n        unsigned int b              : 1;  // 23 P1-16\r\n        unsigned int c              : 1;  // 22 P1-15  // row bits.\r\n        unsigned int d              : 1;  // 24 P1-18\r\n        unsigned int a              : 1;  // 25 P1-22\r\n\r\n        unsigned int p2_r2          : 1;  // 26 P1-37 (only on A+/B+/Pi2)\r\n        unsigned int p0_g1          : 1;  // 27 P1-13 (Not on RPi1, Rev1)\r\n      } bits;\r\n      uint32_t raw;\r\n      IoBits() : raw(0) {}\r\n\r\n\r\n\r\nThe output image is 5       7 .\r\n\r\n\r\nRun the command\r\n> ./led-matrix -D1 -r32 -c2 message3.ppm\r\n\r\n\r\na demonstration: \r\nhttps://www.youtube.com/watch?v=GZl1-twGu98\r\n\r\n\r\nThank you."},"comment":{"url":"https://api.github.com/repos/hzeller/rpi-rgb-led-matrix/issues/comments/155983537","html_url":"https://github.com/hzeller/rpi-rgb-led-matrix/issues/79#issuecomment-155983537","issue_url":"https://api.github.com/repos/hzeller/rpi-rgb-led-matrix/issues/79","id":155983537,"user":{"login":"hzeller","id":140937,"avatar_url":"https://avatars.githubusercontent.com/u/140937?v=3","gravatar_id":"","url":"https://api.github.com/users/hzeller","html_url":"https://github.com/hzeller","followers_url":"https://api.github.com/users/hzeller/followers","following_url":"https://api.github.com/users/hzeller/following{/other_user}","gists_url":"https://api.github.com/users/hzeller/gists{/gist_id}","starred_url":"https://api.github.com/users/hzeller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hzeller/subscriptions","organizations_url":"https://api.github.com/users/hzeller/orgs","repos_url":"https://api.github.com/users/hzeller/repos","events_url":"https://api.github.com/users/hzeller/events{/privacy}","received_events_url":"https://api.github.com/users/hzeller/received_events","type":"User","site_admin":false},"created_at":"2015-11-12T03:02:19Z","updated_at":"2015-11-12T03:02:19Z","body":"No hardware needed, at this part, it is just software.\r\nIt looks like the internal mapping in the panel is forward and back.\r\n\r\nSet Pixels at various positions and figure out where they actually end up. Then write a transformer (include/transformer.h) that does the reverse mapping."}}