Skip to content
Snippets Groups Projects

Backlight control

Closed Manuel Kasten requested to merge Draradech/firmware:backlight_control into master
2 unresolved threads
  • moved PWM_Output content from lib/card10/display.c to DEV_Set_BL in lib/gfx/GUI_DEV/DEV_config.c (activating LCD_SetBacklight, which uses it)
  • added epic_disp_backlight, which calls LCD_SetBacklight
  • added backlight() to pycardium display module, making backlight available to py apps

Merge request reports

Merge request pipeline #2938 passed

Merge request pipeline passed for 8ddd39a6

Closed by schneiderschneider 5 years ago (Aug 22, 2019 9:38pm UTC)

Merge details

  • The changes were not merged into .

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
105 tmr.mode = TMR_MODE_PWM;
106 tmr.cmp_cnt = period_ticks;
107 tmr.pol = 0;
108 TMR_Config(PWM_TIMER, &tmr);
109
110 tmr_pwm.pol = 1;
111 tmr_pwm.per_cnt = period_ticks;
112 tmr_pwm.duty_cnt = duty_ticks;
113
114 if (TMR_PWMConfig(PWM_TIMER, &tmr_pwm) != E_NO_ERROR) {
115 printf("Failed TMR_PWMConfig.\n");
116 }
117
118 TMR_Enable(PWM_TIMER);
119
120 printf("PWM started.\n");
  • 1105 1106 API(API_DISP_FRAMEBUFFER, int epic_disp_framebuffer(union disp_framebuffer *fb));
    1106 1107
    1107 1108
    1109 /**
    1110 * Set the backlight brightness value
    1111 *
    1112 * :param brightness: brightness from 0 - 1000
  • I'm quickly going to implement the changes myself

  • Manually merged in 330f8713

  • closed

  • Arist mentioned in merge request !359 (merged)

    mentioned in merge request !359 (merged)

  • Please register or sign in to reply
    Loading