{"action":"closed","issue":{"url":"https://api.github.com/repos/opentx/opentx/issues/1970","labels_url":"https://api.github.com/repos/opentx/opentx/issues/1970/labels{/name}","comments_url":"https://api.github.com/repos/opentx/opentx/issues/1970/comments","events_url":"https://api.github.com/repos/opentx/opentx/issues/1970/events","html_url":"https://github.com/opentx/opentx/issues/1970","id":53317181,"number":1970,"title":"Build fails with PCB=9X2561 and PWM_BACKLIGHT=YES","user":{"login":"kh90909","id":7075951,"avatar_url":"https://avatars.githubusercontent.com/u/7075951?v=3","gravatar_id":"","url":"https://api.github.com/users/kh90909","html_url":"https://github.com/kh90909","followers_url":"https://api.github.com/users/kh90909/followers","following_url":"https://api.github.com/users/kh90909/following{/other_user}","gists_url":"https://api.github.com/users/kh90909/gists{/gist_id}","starred_url":"https://api.github.com/users/kh90909/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kh90909/subscriptions","organizations_url":"https://api.github.com/users/kh90909/orgs","repos_url":"https://api.github.com/users/kh90909/repos","events_url":"https://api.github.com/users/kh90909/events{/privacy}","received_events_url":"https://api.github.com/users/kh90909/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/opentx/opentx/milestones/19","labels_url":"https://api.github.com/repos/opentx/opentx/milestones/19/labels","id":873321,"number":19,"title":"OpenTX 2.0.14","description":"","creator":{"login":"bsongis","id":5603504,"avatar_url":"https://avatars.githubusercontent.com/u/5603504?v=3","gravatar_id":"","url":"https://api.github.com/users/bsongis","html_url":"https://github.com/bsongis","followers_url":"https://api.github.com/users/bsongis/followers","following_url":"https://api.github.com/users/bsongis/following{/other_user}","gists_url":"https://api.github.com/users/bsongis/gists{/gist_id}","starred_url":"https://api.github.com/users/bsongis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsongis/subscriptions","organizations_url":"https://api.github.com/users/bsongis/orgs","repos_url":"https://api.github.com/users/bsongis/repos","events_url":"https://api.github.com/users/bsongis/events{/privacy}","received_events_url":"https://api.github.com/users/bsongis/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":37,"state":"open","created_at":"2014-11-19T20:30:36Z","updated_at":"2015-01-09T07:47:11Z","due_on":"2015-01-30T23:00:00Z","closed_at":null},"comments":7,"created_at":"2015-01-03T22:18:17Z","updated_at":"2015-01-09T07:47:11Z","closed_at":"2015-01-09T07:47:11Z","body":"It looks like the PWM_BACKLIGHT code didn't get updated with ATmega2561-specific defines and code, so there are compile errors related to the different timer registers.\r\n\r\nHappy to fix this myself and submit a pull request, but I could use some help to determine which timer I should use. The current mega64/128 code uses timer 2. The [2561 migration app note] (http://www.atmel.com/Images/doc2581.pdf) suggests that its timer0 is equivalent to timer2 on the 64/128, but I'm concerned that timer0 might be used elsewhere. Someone familiar with the code will be able to answer this much faster and more reliably than me."}}