Skip to content

Commit

Permalink
Settings for Ryan.
Browse files Browse the repository at this point in the history
  • Loading branch information
mithro committed Aug 10, 2016
1 parent d0d3aea commit 6bdf86a
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
29 changes: 29 additions & 0 deletions firmware/lm32/ci.c
Expand Up @@ -847,3 +847,32 @@ void ci_service(void)

ci_prompt();
}

void reconfigure_pyconau2016(void) {
// PyCon AU 2016 settings
#if (BOARD_OPSIS || BOARD_ATLYS) && TARGET_HDMI2USB
printf("Setting for PyCon AU\r\n");
printf("------------\r\n");

// video_mode 10
video_mode_set(10);

// x c 1 1
video_matrix_connect(VIDEO_IN_HDMI_IN1, VIDEO_OUT_HDMI_OUT1);
// output0 off
output0_off();
// input0 off
/* Does nothing - debug_input(1, 1, 0); */

// x c 1 encoder
video_matrix_connect(VIDEO_IN_HDMI_IN1, VIDEO_OUT_ENCODER);
// encoder on
/* Does nothing - encoder_enable(1); */
// encoder fps 25
encoder_set_fps(25);
// encoder quality 85
encoder_set_quality(85);

printf("------------\r\n");
#endif
}
2 changes: 2 additions & 0 deletions firmware/lm32/ci.h
Expand Up @@ -4,4 +4,6 @@
void ci_prompt(void);
void ci_service(void);

void reconfigure_pyconau2016(void);

#endif
3 changes: 3 additions & 0 deletions firmware/lm32/main.c
Expand Up @@ -60,6 +60,9 @@ int main(void)
encoder_enable(1);
processor_update();
#endif

reconfigure_pyconau2016();

ci_prompt();
while(1) {
processor_service();
Expand Down

0 comments on commit 6bdf86a

Please sign in to comment.