{"action":"created","issue":{"url":"https://api.github.com/repos/nathankunicki/nuimojs/issues/12","repository_url":"https://api.github.com/repos/nathankunicki/nuimojs","labels_url":"https://api.github.com/repos/nathankunicki/nuimojs/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/nathankunicki/nuimojs/issues/12/comments","events_url":"https://api.github.com/repos/nathankunicki/nuimojs/issues/12/events","html_url":"https://github.com/nathankunicki/nuimojs/pull/12","id":184865424,"number":12,"title":"Added the option to use \"configbits\", see details.","user":{"login":"Paul-Ver","id":16624288,"avatar_url":"https://avatars.githubusercontent.com/u/16624288?v=3","gravatar_id":"","url":"https://api.github.com/users/Paul-Ver","html_url":"https://github.com/Paul-Ver","followers_url":"https://api.github.com/users/Paul-Ver/followers","following_url":"https://api.github.com/users/Paul-Ver/following{/other_user}","gists_url":"https://api.github.com/users/Paul-Ver/gists{/gist_id}","starred_url":"https://api.github.com/users/Paul-Ver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Paul-Ver/subscriptions","organizations_url":"https://api.github.com/users/Paul-Ver/orgs","repos_url":"https://api.github.com/users/Paul-Ver/repos","events_url":"https://api.github.com/users/Paul-Ver/events{/privacy}","received_events_url":"https://api.github.com/users/Paul-Ver/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-10-24T14:58:18Z","updated_at":"2016-10-25T13:23:51Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/nathankunicki/nuimojs/pulls/12","html_url":"https://github.com/nathankunicki/nuimojs/pull/12","diff_url":"https://github.com/nathankunicki/nuimojs/pull/12.diff","patch_url":"https://github.com/nathankunicki/nuimojs/pull/12.patch"},"body":"Many thanks for the awesome library and your contribution on my issue (RSSI), it is of great help to our project (I didn't really know a nice way to implement that myself).\r\nHowever, I've had another issue, which I was able to resolve myself, and would like to merge it into your project (to have one great repository and not multiple forks with different features).\r\n\r\nWhen sending multiple images after each other, the matrix \"resets\".\r\nI've asked Senic on how to fix this and they told me they used the last 7 bits of the buffer as \"configbits\" (see below).\r\n\r\nCurrently they only have \"Onion Skinning\" as a possibility, but my code allows any option.\r\nThough, it may to be as user friendly, but it's simple and does the job.\r\n\r\nTo Senic:\r\n\r\n> When displaying a \"bar\" or \"numbers\" that you can change by turning, the \"fade-in\" effect makes it very hard to see the changes. Because every step isn't at 100% brightness immediately, it's hard to scroll through all the steps. (and it looks like a new bar every time, instead of one bar that can be adjusted.\r\n> \r\n> Can the fade-in effect be disabled?\r\n> \r\n> I'm using the NuimoJS library by NathanKunicki but I don't believe the fade-in effect (or swiping) has anything to do with the NuimoJS library.\r\n> Does the xcode-swift project allow fade-in to be disabled?\r\n> (I'm using NuimoJS for portability/simplicity reasons)\r\n\r\nFrom Senic:\r\n\r\n> Our official SDKs takes care of so called Onion-Skinning Effect. I can explain how it is enabled/disabled. Nuimo has 9x9 LED Matrix that contains 81 LEDs. We need 81 bits to bitmap the whole LED Matrix. Additionally a byte to set the brightness and a byte to set display duration. Therefore totally 13 bytes must be sent to LED characteristics. First 11 bytes represents the bitmap. 11 x 8 bits => 88 bits. In that only 81 bits are used for LEDs and the rest 7 bits are used for other configurations such as enabling Oninon-Skinning effect.  In 11th byte [000X 0001], 5th bit (X) is OnionSkin Bit. So if you don't want to have that effect, then you should keep all the last 7 bits zero.\r\n\r\nI'm not sure if we should make a new version out of it, or if we can slide it into the 0.2.0, or put it in a later 0.3.0, but that's up to you I think.\r\n\r\nIf you need any details, please ask."},"comment":{"url":"https://api.github.com/repos/nathankunicki/nuimojs/issues/comments/256033067","html_url":"https://github.com/nathankunicki/nuimojs/pull/12#issuecomment-256033067","issue_url":"https://api.github.com/repos/nathankunicki/nuimojs/issues/12","id":256033067,"user":{"login":"nathankunicki","id":2862695,"avatar_url":"https://avatars.githubusercontent.com/u/2862695?v=3","gravatar_id":"","url":"https://api.github.com/users/nathankunicki","html_url":"https://github.com/nathankunicki","followers_url":"https://api.github.com/users/nathankunicki/followers","following_url":"https://api.github.com/users/nathankunicki/following{/other_user}","gists_url":"https://api.github.com/users/nathankunicki/gists{/gist_id}","starred_url":"https://api.github.com/users/nathankunicki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathankunicki/subscriptions","organizations_url":"https://api.github.com/users/nathankunicki/orgs","repos_url":"https://api.github.com/users/nathankunicki/repos","events_url":"https://api.github.com/users/nathankunicki/events{/privacy}","received_events_url":"https://api.github.com/users/nathankunicki/received_events","type":"User","site_admin":false},"created_at":"2016-10-25T13:23:51Z","updated_at":"2016-10-25T13:23:51Z","body":"Yes, I think a more Javascript'y way would be to do something like:\r\n\r\n```\r\nsetLEDMatrix(matrixData, brightness, timeout, {\r\n    onionSkinning: false,\r\n    configFlicker: true\r\n}\r\n```\r\n\r\nAs you say, the options would be checked and then added up to make the final int. The default would likely be an empty object ({}), which would of course end up being a total of 0. \r\n"}}
{"actor":{"display_login":"nathankunicki"}}