Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Showing with 14 additions and 3 deletions.
  1. +14 −3 software/videomixer/main.c
17 software/videomixer/main.c
View
@@ -12,6 +12,7 @@
#include "dvisampler0.h"
#include "dvisampler1.h"
+#ifdef POTS_BASE
static int scale_pot(int raw, int range)
{
int pot_min = 64000;
@@ -44,7 +45,7 @@ static void additive_blend(int p0, int p1)
fb_blender_f1_write(scale_pot(p1, 255));
}
-static void pots_service(void)
+static void ui_service(void)
{
static int last_event;
static int additive_blend_enabled;
@@ -74,6 +75,16 @@ static void pots_service(void)
}
}
+#else
+
+static void ui_service(void)
+{
+ fb_blender_f0_write(0xff);
+ fb_blender_f1_write(0xff);
+}
+
+#endif
+
static void fb_service(void)
{
int c;
@@ -117,7 +128,7 @@ int main(void)
puts("Minimal video mixer software built "__DATE__" "__TIME__"\n");
time_init();
- fb_set_mode(FB_MODE_640_480);
+ fb_set_mode(FB_MODE_1024_768);
dvisampler0_init_video();
dvisampler1_init_video();
fb_enable(1);
@@ -125,7 +136,7 @@ int main(void)
while(1) {
dvisampler0_service();
dvisampler1_service();
- pots_service();
+ ui_service();
fb_service();
membw_service();
}

No commit comments for this range

Something went wrong with that request. Please try again.