{"action":"created","issue":{"url":"https://api.github.com/repos/esp8266/Arduino/issues/2592","repository_url":"https://api.github.com/repos/esp8266/Arduino","labels_url":"https://api.github.com/repos/esp8266/Arduino/issues/2592/labels{/name}","comments_url":"https://api.github.com/repos/esp8266/Arduino/issues/2592/comments","events_url":"https://api.github.com/repos/esp8266/Arduino/issues/2592/events","html_url":"https://github.com/esp8266/Arduino/issues/2592","id":181904260,"number":2592,"title":"PWM analogWriteRange BUG?","user":{"login":"gorec2005","id":1850296,"avatar_url":"https://avatars.githubusercontent.com/u/1850296?v=3","gravatar_id":"","url":"https://api.github.com/users/gorec2005","html_url":"https://github.com/gorec2005","followers_url":"https://api.github.com/users/gorec2005/followers","following_url":"https://api.github.com/users/gorec2005/following{/other_user}","gists_url":"https://api.github.com/users/gorec2005/gists{/gist_id}","starred_url":"https://api.github.com/users/gorec2005/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gorec2005/subscriptions","organizations_url":"https://api.github.com/users/gorec2005/orgs","repos_url":"https://api.github.com/users/gorec2005/repos","events_url":"https://api.github.com/users/gorec2005/events{/privacy}","received_events_url":"https://api.github.com/users/gorec2005/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2016-10-09T19:02:31Z","updated_at":"2016-10-10T12:12:50Z","closed_at":null,"body":"#### Hardware\r\nHardware:\t\t\tESP-12\r\nCore Version:      \tfrom GIT 08.10.2016\r\n\r\n### Description\r\n\r\nBright not changed if change PWM analog Range... and all time bright is maximum!\r\ni don't understand - it's a bug or feature...\r\n\r\n### Settings in IDE\r\n\r\nModule:  \t\t\tNodemcu v1\r\nFlash Size: \t\t4MB\r\nCPU Frequency:\t160Mhz\r\nFlash Mode:\t\tdio\r\nFlash Frequency:\t40Mhz\r\nUpload Using:\t\t SERIAL\r\nReset Method:\t\t nodemcu\r\n\r\n\r\n### Sketch\r\n\r\n```cpp\r\nvoid setup() {\r\n  Serial.begin(9600);\r\n  Serial.println(__FILE__ \" \" __DATE__ \" \" __TIME__);\r\n  pinMode( 12, OUTPUT ); \r\n}\r\n\r\nvoid loop() {\r\nSerial.println(\"2000\");\r\nanalogWrite( 12,1 );\r\nanalogWriteRange(2000);\r\ndelay(1000);\r\n\r\nSerial.println(\"3000\");\r\nanalogWrite( 12,1 );\r\nanalogWriteRange(3000);\r\ndelay(1000);\r\n\r\nSerial.println(\"4000\");\r\nanalogWrite( 12,1 );\r\nanalogWriteRange(4000);\r\ndelay(1000);\r\n}\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/esp8266/Arduino/issues/comments/252600920","html_url":"https://github.com/esp8266/Arduino/issues/2592#issuecomment-252600920","issue_url":"https://api.github.com/repos/esp8266/Arduino/issues/2592","id":252600920,"user":{"login":"WereCatf","id":5520573,"avatar_url":"https://avatars.githubusercontent.com/u/5520573?v=3","gravatar_id":"","url":"https://api.github.com/users/WereCatf","html_url":"https://github.com/WereCatf","followers_url":"https://api.github.com/users/WereCatf/followers","following_url":"https://api.github.com/users/WereCatf/following{/other_user}","gists_url":"https://api.github.com/users/WereCatf/gists{/gist_id}","starred_url":"https://api.github.com/users/WereCatf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WereCatf/subscriptions","organizations_url":"https://api.github.com/users/WereCatf/orgs","repos_url":"https://api.github.com/users/WereCatf/repos","events_url":"https://api.github.com/users/WereCatf/events{/privacy}","received_events_url":"https://api.github.com/users/WereCatf/received_events","type":"User","site_admin":false},"created_at":"2016-10-10T12:12:50Z","updated_at":"2016-10-10T12:12:50Z","body":"@gorec2005 Okay, I am only going to say this once: **stop using analogWriteRange()!** You do not understand how it works, and you do not need it! Just simply change the value of analogWrite()-call and POOF -- the LED's brightness will change!"}}
{"actor":{"display_login":"WereCatf"}}