{"action":"created","issue":{"url":"https://api.github.com/repos/parallaxinc/BlocklyProp/issues/561","repository_url":"https://api.github.com/repos/parallaxinc/BlocklyProp","labels_url":"https://api.github.com/repos/parallaxinc/BlocklyProp/issues/561/labels{/name}","comments_url":"https://api.github.com/repos/parallaxinc/BlocklyProp/issues/561/comments","events_url":"https://api.github.com/repos/parallaxinc/BlocklyProp/issues/561/events","html_url":"https://github.com/parallaxinc/BlocklyProp/issues/561","id":172541904,"number":561,"title":"ColorPal Block modifications","user":{"login":"MatzElectronics","id":19737272,"avatar_url":"https://avatars.githubusercontent.com/u/19737272?v=3","gravatar_id":"","url":"https://api.github.com/users/MatzElectronics","html_url":"https://github.com/MatzElectronics","followers_url":"https://api.github.com/users/MatzElectronics/followers","following_url":"https://api.github.com/users/MatzElectronics/following{/other_user}","gists_url":"https://api.github.com/users/MatzElectronics/gists{/gist_id}","starred_url":"https://api.github.com/users/MatzElectronics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MatzElectronics/subscriptions","organizations_url":"https://api.github.com/users/MatzElectronics/orgs","repos_url":"https://api.github.com/users/MatzElectronics/repos","events_url":"https://api.github.com/users/MatzElectronics/events{/privacy}","received_events_url":"https://api.github.com/users/MatzElectronics/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/parallaxinc/BlocklyProp/labels/Block%20Request","name":"Block Request","color":"0e8a16"},{"url":"https://api.github.com/repos/parallaxinc/BlocklyProp/labels/In%20Demo","name":"In Demo","color":"0052cc"},{"url":"https://api.github.com/repos/parallaxinc/BlocklyProp/labels/Requires%20Verification","name":"Requires Verification","color":"d93f0b"}],"state":"open","locked":false,"assignee":{"login":"DarkmatterVale","id":6094957,"avatar_url":"https://avatars.githubusercontent.com/u/6094957?v=3","gravatar_id":"","url":"https://api.github.com/users/DarkmatterVale","html_url":"https://github.com/DarkmatterVale","followers_url":"https://api.github.com/users/DarkmatterVale/followers","following_url":"https://api.github.com/users/DarkmatterVale/following{/other_user}","gists_url":"https://api.github.com/users/DarkmatterVale/gists{/gist_id}","starred_url":"https://api.github.com/users/DarkmatterVale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DarkmatterVale/subscriptions","organizations_url":"https://api.github.com/users/DarkmatterVale/orgs","repos_url":"https://api.github.com/users/DarkmatterVale/repos","events_url":"https://api.github.com/users/DarkmatterVale/events{/privacy}","received_events_url":"https://api.github.com/users/DarkmatterVale/received_events","type":"User","site_admin":false},"assignees":[{"login":"DarkmatterVale","id":6094957,"avatar_url":"https://avatars.githubusercontent.com/u/6094957?v=3","gravatar_id":"","url":"https://api.github.com/users/DarkmatterVale","html_url":"https://github.com/DarkmatterVale","followers_url":"https://api.github.com/users/DarkmatterVale/followers","following_url":"https://api.github.com/users/DarkmatterVale/following{/other_user}","gists_url":"https://api.github.com/users/DarkmatterVale/gists{/gist_id}","starred_url":"https://api.github.com/users/DarkmatterVale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DarkmatterVale/subscriptions","organizations_url":"https://api.github.com/users/DarkmatterVale/orgs","repos_url":"https://api.github.com/users/DarkmatterVale/repos","events_url":"https://api.github.com/users/DarkmatterVale/events{/privacy}","received_events_url":"https://api.github.com/users/DarkmatterVale/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/parallaxinc/BlocklyProp/milestones/7","html_url":"https://github.com/parallaxinc/BlocklyProp/milestones/Public%20Release%20%231","labels_url":"https://api.github.com/repos/parallaxinc/BlocklyProp/milestones/7/labels","id":1908333,"number":7,"title":"Public Release #1","description":"This marks the point of the first release meant for public use.  It is in anticipation of the school year for most districts.","creator":{"login":"PropGit","id":1266318,"avatar_url":"https://avatars.githubusercontent.com/u/1266318?v=3","gravatar_id":"","url":"https://api.github.com/users/PropGit","html_url":"https://github.com/PropGit","followers_url":"https://api.github.com/users/PropGit/followers","following_url":"https://api.github.com/users/PropGit/following{/other_user}","gists_url":"https://api.github.com/users/PropGit/gists{/gist_id}","starred_url":"https://api.github.com/users/PropGit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PropGit/subscriptions","organizations_url":"https://api.github.com/users/PropGit/orgs","repos_url":"https://api.github.com/users/PropGit/repos","events_url":"https://api.github.com/users/PropGit/events{/privacy}","received_events_url":"https://api.github.com/users/PropGit/received_events","type":"User","site_admin":false},"open_issues":17,"closed_issues":98,"state":"open","created_at":"2016-07-27T22:58:06Z","updated_at":"2016-08-27T22:09:09Z","due_on":"2016-09-01T07:00:00Z","closed_at":null},"comments":16,"created_at":"2016-08-22T20:05:57Z","updated_at":"2016-08-27T22:35:23Z","closed_at":null,"body":"For the ColorPal, The current block needs to be modified to say \"raw output\" since it outputs three separate colors in a 24bit format with some funky ranges, and those outputs are not white balanced or adjusted in any way.  That being said, it's still valuable to have.\r\n\r\nTo bring the ColorPal in line with how we are \"standardizing\" color, we need to create a second ColorPal block that just outputs its color into a single variable that can then be used with other color blocks/values that have since been created.  For example, you can draw a square on the OLED screen who's color is determined by what the ColorPal sees.  Or the M&M sorter project can be easily accomplished with the color compare block.\r\n\r\nThe new ColorPal block should look something like this:\r\n![image](https://cloud.githubusercontent.com/assets/19737272/17266659/ce214844-55af-11e6-9a7b-b7f96c6362e4.png)\r\n\r\nA request to add a function was submitted to the SimpleLibraries ColorPal library here: https://github.com/parallaxinc/Simple-Libraries/issues/29.  This block would depend on this function (or at a minimum the math done by this function).  To be clear, this new function is not an exact representation of the color sensed by the ColorPal.  Variations between sensors and creating an exact curve make it nearly impossible to get it exactly right...but this approximation comes close enough :)"},"comment":{"url":"https://api.github.com/repos/parallaxinc/BlocklyProp/issues/comments/242944633","html_url":"https://github.com/parallaxinc/BlocklyProp/issues/561#issuecomment-242944633","issue_url":"https://api.github.com/repos/parallaxinc/BlocklyProp/issues/561","id":242944633,"user":{"login":"MatzElectronics","id":19737272,"avatar_url":"https://avatars.githubusercontent.com/u/19737272?v=3","gravatar_id":"","url":"https://api.github.com/users/MatzElectronics","html_url":"https://github.com/MatzElectronics","followers_url":"https://api.github.com/users/MatzElectronics/followers","following_url":"https://api.github.com/users/MatzElectronics/following{/other_user}","gists_url":"https://api.github.com/users/MatzElectronics/gists{/gist_id}","starred_url":"https://api.github.com/users/MatzElectronics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MatzElectronics/subscriptions","organizations_url":"https://api.github.com/users/MatzElectronics/orgs","repos_url":"https://api.github.com/users/MatzElectronics/repos","events_url":"https://api.github.com/users/MatzElectronics/events{/privacy}","received_events_url":"https://api.github.com/users/MatzElectronics/received_events","type":"User","site_admin":false},"created_at":"2016-08-27T22:35:23Z","updated_at":"2016-08-27T22:35:23Z","body":"@zfi - could you weigh in on this?  I'm not 100% sure if this is the best solution or not, because I don't know how memory is allocated, etc.  For example, does giving it a short string first, and a longer one later create an issue?:  I don't have an ActivityBoard in front of me, so can you try this:?\r\n\r\n`char *varName;\r\n\r\n#include \"simpletools.h\"\r\n\r\nint main()\r\n{\r\n  \r\n  varName = \"Cheese\";\r\n  varName = \"Cheese and Crackers\";\r\n  print(\"%s\\n\", varName);\r\n\r\n  varName = \"Yummy!\";\r\n  print(\"%s\\n\", varName);\r\n}\r\n`\r\n\r\nIf that works, we may be on to something..."}}
{"actor":{"display_login":"MatzElectronics"}}