keyproc.lst
来自「一个带收音的功放程序, VFD显示驱动用一个非常实用的方法, 稍加修改即可换成不」· LST 代码 · 共 804 行 · 第 1/5 页
LST
804 行
149 3 Power_Proc();
150 3 }
151 2 else if(POWER_Status == 1)
152 2 {
153 3 {
154 4 if( (Current_Key != MEMORY_KEY ) && (Current_Key != KEY_0)
155 4 &&(Current_Key != KEY_1 ) && (Current_Key != KEY_2)
156 4 &&(Current_Key != KEY_3 ) && (Current_Key != KEY_4)
157 4 &&(Current_Key != KEY_5PLUS))
158 4
159 4 Memory_Start = 0;//记忆标志清零
160 4
161 4 switch(Current_Key)
162 4 {
163 5
164 5 //FL-FR音量调节加函数,音量的调节使用M62429
165 5 case VOLUME_UP_KEY:
166 5
167 5 Mute_Switch = 0;
168 5 AV_STANDBY = 0;
169 5 if(Current_Volume < Volume_Max)
170 5 Current_Volume++;
171 5 if(Center_Volume < Volume_Max)
172 5 Center_Volume++;
173 5 if(BASS_Volume < Volume_Max)
174 5 BASS_Volume++;
175 5 if(FL_Volume < Volume_Max)
176 5 FL_Volume++;
177 5 if(FR_Volume < Volume_Max)
178 5 FR_Volume++;
179 5 if(SL_Volume < Volume_Max)
C51 COMPILER V7.20 KEYPROC 06/30/2005 14:02:57 PAGE 4
180 5 SL_Volume++;
181 5 if(SR_Volume < Volume_Max)
182 5 SR_Volume++;
183 5 Volume_Tune(ALLCH_Vol);
184 5 VFD_DisplayString("VOL ", 5);
185 5 VFD_DisplayNumber(Current_Volume,0,0);
186 5 VFD_ICON_Display(0);
187 5 Volume_Key_Dealed = 0;
188 5 TO_MAIN_DISPLAY = 40;
189 5 break;
190 5
191 5 case VOLUME_DOWN_KEY:
192 5 if(Current_Volume == 0)
193 5 {
194 6 AV_STANDBY = 1;
195 6 }
196 5 else
197 5 {
198 6 Mute_Switch = 0;
199 6 AV_STANDBY = 0;
200 6
201 6 if(Current_Volume > Volume_Min)
202 6 Current_Volume--;
203 6 if(Center_Volume > Volume_Min)
204 6 Center_Volume--;
205 6 if(BASS_Volume > Volume_Min)
206 6 BASS_Volume--;
207 6 if(FL_Volume > Volume_Min)
208 6 FL_Volume--;
209 6 if(FR_Volume > Volume_Min)
210 6 FR_Volume--;
211 6 if(SL_Volume > Volume_Min)
212 6 SL_Volume--;
213 6 if(SR_Volume > Volume_Min)
214 6 SR_Volume--;
215 6 }
216 5 Volume_Tune(ALLCH_Vol);
217 5 Volume_Key_Dealed = 0;
218 5 VFD_DisplayString("VOL ", 5);
219 5 VFD_DisplayNumber(Current_Volume,0,0);
220 5 VFD_ICON_Display(0);
221 5 TO_MAIN_DISPLAY = 40;
222 5 break;
223 5
224 5 case SOURCE_KEY:
225 5 Mute_Switch = 0;
226 5 AV_STANDBY = 0;
227 5 if(Current_State == CH5)
228 5 {
229 6 Current_State = TUNER;
230 6 }
231 5 else
232 5 Current_State++;
233 5 Source_Set();
234 5 TO_MAIN_DISPLAY = 40;
235 5 break;
236 5
237 5
238 5
239 5 case FUNCTION_KEY:
240 5 if(Current_Volume == 0)
241 5 break;
C51 COMPILER V7.20 KEYPROC 06/30/2005 14:02:57 PAGE 5
242 5 Mute_Switch = 0;
243 5 AV_STANDBY = 0;
244 5 VFD_ICON_Display(0);
245 5 FUNCTION_Count++;
246 5 if(Current_State == CH5)
247 5 {
248 6 if(FUNCTION_Count == 7)
249 6 FUNCTION_Count = 1;
250 6 }
251 5 else
252 5 {
253 6 if(FUNCTION_Count == 3)
254 6 FUNCTION_Count = 1;
255 6 }
256 5 if(FUNCTION_Count == 1)
257 5 {
258 6 String_Display[0] = 'F';
259 6 String_Display[1] = 'L';
260 6 if(FL_Volume < Current_Volume)
261 6 {
262 7 VOL_Difference = Current_Volume - FL_Volume;
263 7 String_Display[2] = '-';
264 7 }
265 6 else
266 6 {
267 7 VOL_Difference = FL_Volume - Current_Volume;
268 7 String_Display[2] = '+';
269 7
270 7 }
271 6 Difference_Value();
272 6
273 6 }
274 5 else if(FUNCTION_Count == 2)
275 5 {
276 6 String_Display[0] = 'F';
277 6 String_Display[1] = 'R';
278 6 if(FR_Volume < Current_Volume)
279 6 {
280 7 VOL_Difference = Current_Volume - FR_Volume;
281 7 String_Display[2] = '-';
282 7 }
283 6 else
284 6 {
285 7 VOL_Difference = FR_Volume - Current_Volume;
286 7 String_Display[2] = '+';
287 7
288 7 }
289 6 Difference_Value();
290 6
291 6 }
292 5 else if(FUNCTION_Count == 3)
293 5 {
294 6 String_Display[0] = 'C';
295 6 String_Display[1] = ' ';
296 6 if(Center_Volume < Current_Volume)
297 6 {
298 7 VOL_Difference = Current_Volume - Center_Volume;
299 7 String_Display[2] = '-';
300 7 }
301 6 else
302 6 {
303 7 VOL_Difference = Center_Volume - Current_Volume;
C51 COMPILER V7.20 KEYPROC 06/30/2005 14:02:57 PAGE 6
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?