{"action":"closed","issue":{"url":"https://api.github.com/repos/SmingHub/Sming/issues/70","labels_url":"https://api.github.com/repos/SmingHub/Sming/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/SmingHub/Sming/issues/70/comments","events_url":"https://api.github.com/repos/SmingHub/Sming/issues/70/events","html_url":"https://github.com/SmingHub/Sming/issues/70","id":76802188,"number":70,"title":"PWM unstable/flickering","user":{"login":"zigarrre","id":556373,"avatar_url":"https://avatars.githubusercontent.com/u/556373?v=3","gravatar_id":"","url":"https://api.github.com/users/zigarrre","html_url":"https://github.com/zigarrre","followers_url":"https://api.github.com/users/zigarrre/followers","following_url":"https://api.github.com/users/zigarrre/following{/other_user}","gists_url":"https://api.github.com/users/zigarrre/gists{/gist_id}","starred_url":"https://api.github.com/users/zigarrre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zigarrre/subscriptions","organizations_url":"https://api.github.com/users/zigarrre/orgs","repos_url":"https://api.github.com/users/zigarrre/repos","events_url":"https://api.github.com/users/zigarrre/events{/privacy}","received_events_url":"https://api.github.com/users/zigarrre/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SmingHub/Sming/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2015-05-15T17:50:17Z","updated_at":"2015-10-30T23:17:19Z","closed_at":"2015-10-30T23:17:19Z","body":"When driving a LED with PWM it flickers. This is probably caused by timing issues in the PWM implementation which cause a varying duty cycle. The lower the duty cycle is set the more drastic will be the flickering.\r\n\r\nMinimum sample to reproduce the problem:\r\n```c++\r\n#include <user_config.h>\r\n#include <SmingCore/SmingCore.h>\r\n\r\nvoid init()\r\n{\r\n        analogWrite(2, 50);\r\n}\r\n```\r\nLED connected between GPIO2 and GND."}}