Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 2 commits
  • 1 file changed
  • 0 comments
  • 1 contributor

Showing 1 changed file with 14 additions and 3 deletions. Show diff stats Hide diff stats

  1. 17  software/videomixer/main.c
17  software/videomixer/main.c
@@ -12,6 +12,7 @@
12 12
 #include "dvisampler0.h"
13 13
 #include "dvisampler1.h"
14 14
 
  15
+#ifdef POTS_BASE
15 16
 static int scale_pot(int raw, int range)
16 17
 {
17 18
 	int pot_min = 64000;
@@ -44,7 +45,7 @@ static void additive_blend(int p0, int p1)
44 45
 	fb_blender_f1_write(scale_pot(p1, 255));
45 46
 }
46 47
 
47  
-static void pots_service(void)
  48
+static void ui_service(void)
48 49
 {
49 50
 	static int last_event;
50 51
 	static int additive_blend_enabled;
@@ -74,6 +75,16 @@ static void pots_service(void)
74 75
 	}
75 76
 }
76 77
 
  78
+#else
  79
+
  80
+static void ui_service(void)
  81
+{
  82
+	fb_blender_f0_write(0xff);
  83
+	fb_blender_f1_write(0xff);
  84
+}
  85
+
  86
+#endif
  87
+
77 88
 static void fb_service(void)
78 89
 {
79 90
 	int c;
@@ -117,7 +128,7 @@ int main(void)
117 128
 	puts("Minimal video mixer software built "__DATE__" "__TIME__"\n");
118 129
 	
119 130
 	time_init();
120  
-	fb_set_mode(FB_MODE_640_480);
  131
+	fb_set_mode(FB_MODE_1024_768);
121 132
 	dvisampler0_init_video();
122 133
 	dvisampler1_init_video();
123 134
 	fb_enable(1);
@@ -125,7 +136,7 @@ int main(void)
125 136
 	while(1) {
126 137
 		dvisampler0_service();
127 138
 		dvisampler1_service();
128  
-		pots_service();
  139
+		ui_service();
129 140
 		fb_service();
130 141
 		membw_service();
131 142
 	}

No commit comments for this range

Something went wrong with that request. Please try again.