📄 disp.lst
字号:
#else
285 1 SetLCDAddress( PLAY_STATE_ICON_X_POS, PLAY_STATE_ICON_Y_POS);
286 1 PutCodeToLCD( &PlaymodeIcon[1][0], 10 );
287 1
288 1 // second page
289 1 SetLCDAddress(PLAY_STATE_ICON_X_POS+ 1 ,PLAY_STATE_ICON_Y_POS );
290 1 PutCodeToLCD( &PlaymodeIcon[1][10], 10 );
291 1 /* SetLCDAddress( 0, 10 );
292 1 for( _loop3 = 0; _loop3 < 3; _loop3++ )
293 1 PutCodeToLCD( &PlayingSettingIcon1[_loop3][0], 24 );
294 1
295 1 SetLCDAddress( 0 + 1,10 );
296 1 for( _loop3 = 0; _loop3 < 3; _loop3++ )
297 1 PutCodeToLCD( &PlayingSettingIcon1[_loop3][24], 24 );
298 1 */
299 1 //lcd_cgram(0,50,5);
300 1 LED_ON = (8 >> ref_state);
301 1 if (recording) LED_FAST = 2;
302 1 else LED_FAST = 3;
C51 COMPILER V7.20 DISP 03/24/2007 10:02:40 PAGE 6
303 1 func_state = 0;
304 1 playing = FALSE;
305 1 pause = TRUE;
306 1 #endif
307 1 }
308
309
310 /*F**************************************************************************
311 * NAME: print_state_record
312 *----------------------------------------------------------------------------
313 * PARAMS:
314 *
315 * return:
316 *----------------------------------------------------------------------------
317 * PURPOSE:
318 * Print the record icon
319 *----------------------------------------------------------------------------
320 * EXAMPLE:
321 *----------------------------------------------------------------------------
322 * NOTE:
323 *----------------------------------------------------------------------------
324 * REQUIREMENTS:
325 *****************************************************************************/
326 void print_state_record (void)
327 {
328 1 #if CONF_DISPLAY == LCD
//lcd_cgram(CGRAM_STATE, cgram_rec); /* select record icon */
#else
331 1 LED_ON = 15 - (8 >> ref_state);
332 1 LED_FAST = 1;
333 1 playing = TRUE;
334 1 pause = FALSE;
335 1 #endif
336 1 }
337
338
339
340 /*F**************************************************************************
341 * NAME: print_state_error
342 *----------------------------------------------------------------------------
343 * PARAMS:
344 *
345 * return:
346 *----------------------------------------------------------------------------
347 * PURPOSE:
348 * Print the error icon
349 *----------------------------------------------------------------------------
350 * EXAMPLE:
351 *----------------------------------------------------------------------------
352 * NOTE:
353 *----------------------------------------------------------------------------
354 * REQUIREMENTS:
355 *****************************************************************************/
356 void print_state_error (void)
357 {
358 1 #if CONF_DISPLAY == LCD
//lcd_cgram(CGRAM_STATE, cgram_error); /* select error icon */
#else
361 1 if (mem_state == MEM_CHIP_ERR_FMT)
362 1 {
363 2 LED_VOL = 1; LED_TREEB=0;
364 2 Fformat();
C51 COMPILER V7.20 DISP 03/24/2007 10:02:40 PAGE 7
365 2 if (mem_select_format() == OK) return;
366 2 }
367 1 LED_ON=15;
368 1 LED_FAST=3;
369 1 #endif
370 1 }
371
372
373
374 /*F**************************************************************************
375 * NAME: print_mode_song
376 *----------------------------------------------------------------------------
377 * PARAMS:
378 *
379 * return:
380 *----------------------------------------------------------------------------
381 * PURPOSE:
382 * Print the song icon on the LCD
383 *----------------------------------------------------------------------------
384 * EXAMPLE:
385 *----------------------------------------------------------------------------
386 * NOTE:
387 *----------------------------------------------------------------------------
388 * REQUIREMENTS:
389 *****************************************************************************/
390 void print_mode_song (void)
391 {
392 1 #if CONF_DISPLAY == LCD
//lcd_cgram(CGRAM_MODE, cgram_song); /* select song icon */
#else
395 1 LED_ON = (8 >> ref_state);
396 1 LED_FAST = 3;
397 1 #endif
398 1 }
399
400
401 /*F**************************************************************************
402 * NAME: print_mode_voice
403 *----------------------------------------------------------------------------
404 * PARAMS:
405 *
406 * return:
407 *----------------------------------------------------------------------------
408 * PURPOSE:
409 * Print the voice icon on the LCD
410 *----------------------------------------------------------------------------
411 * EXAMPLE:
412 *----------------------------------------------------------------------------
413 * NOTE:
414 *----------------------------------------------------------------------------
415 * REQUIREMENTS:
416 *****************************************************************************/
417 void print_mode_voice (void)
418 {
419 1 #if CONF_DISPLAY == LCD
//lcd_cgram(CGRAM_MODE, cgram_voice); /* select voice icon */
#else
422 1 LED_ON = (8 >> ref_state);
423 1 LED_FAST = 3;
424 1 #endif
425 1 }
426
C51 COMPILER V7.20 DISP 03/24/2007 10:02:40 PAGE 8
427
428 /*F**************************************************************************
429 * NAME: print_mode_mass
430 *----------------------------------------------------------------------------
431 * PARAMS:
432 *
433 * return:
434 *----------------------------------------------------------------------------
435 * PURPOSE:
436 * Print the mass storage icon on the LCD
437 *----------------------------------------------------------------------------
438 * EXAMPLE:
439 *----------------------------------------------------------------------------
440 * NOTE:
441 *----------------------------------------------------------------------------
442 * REQUIREMENTS:
443 *****************************************************************************/
444 void print_mode_mass (void)
445 {
446 1 #if CONF_DISPLAY == LCD
//lcd_cgram(CGRAM_MODE, cgram_mass); /* select mass storage icon */
#else
449 1 LED_ON = (8 >> ref_state);
450 1 LED_FAST = 1;
451 1 #endif
452 1 }
453
454
455 /*F**************************************************************************
456 * NAME: print_mode_tool
457 *----------------------------------------------------------------------------
458 * PARAMS:
459 *
460 * return:
461 *----------------------------------------------------------------------------
462 * PURPOSE:
463 * Print the tool icon on the LCD
464 *----------------------------------------------------------------------------
465 * EXAMPLE:
466 *----------------------------------------------------------------------------
467 * NOTE:
468 *----------------------------------------------------------------------------
469 * REQUIREMENTS:
470 *****************************************************************************/
471 void print_mode_tool (void)
472 {
473 1 #if CONF_DISPLAY == LCD
//lcd_cgram(CGRAM_MODE, cgram_tools); /* select tool icon */
#else
476 1 LED_ON = (8 >> ref_state);
477 1 LED_FAST = 3;
478 1 #endif
479 1 }
480
481
482 /*F**************************************************************************
483 * NAME: print_mode_blank
484 *----------------------------------------------------------------------------
485 *----------------------------------------------------------------------------
486 * PARAMS:
487 *
488 * return:
C51 COMPILER V7.20 DISP 03/24/2007 10:02:40 PAGE 9
489 *----------------------------------------------------------------------------
490 * PURPOSE:
491 * Print the blank mode icon on the LCD
492 *----------------------------------------------------------------------------
493 * EXAMPLE:
494 *----------------------------------------------------------------------------
495 * NOTE:
496 *----------------------------------------------------------------------------
497 * REQUIREMENTS:
498 *****************************************************************************/
499 void print_mode_blank (void)
500 {
501 1 #if CONF_DISPLAY == LCD
//lcd_cgram(CGRAM_MODE, cgram_blank); /* select blank icon */
#endif
504 1 }
505
506
507 /*F**************************************************************************
508 * NAME: print_sound
509 *----------------------------------------------------------------------------
510 * PARAMS:
511 *
512 * return:
513 *----------------------------------------------------------------------------
514 * PURPOSE:
515 * Print the sound icon
516 *----------------------------------------------------------------------------
517 * EXAMPLE:
518 *----------------------------------------------------------------------------
519 * NOTE:
520 *----------------------------------------------------------------------------
521 * REQUIREMENTS:
522 *****************************************************************************/
523 void print_sound (void)
524 {
525 1 #if CONF_DISPLAY == LCD
switch (song_get_sound())
{
case SND_VOLUME:
{
// lcd_cgram(CGRAM_SOUND, cgram_volume);
break;
}
case SND_BASS:
{
// lcd_cgram(CGRAM_SOUND, cgram_bass);
break;
}
case SND_MEDIUM:
{
//lcd_cgram(CGRAM_SOUND, cgram_medium);
break;
}
case SND_TREBLE:
{
// lcd_cgram(CGRAM_SOUND, cgram_treble);
break;
}
}
#endif
550 1 }
C51 COMPILER V7.20 DISP 03/24/2007 10:02:40 PAGE 10
551
552
553 /*F**************************************************************************
554 * NAME: print_sound_level
555 *----------------------------------------------------------------------------
556 * PARAMS:
557 *
558 * return:
559 *----------------------------------------------------------------------------
560 * PURPOSE:
561 * Print the sound level
562 *----------------------------------------------------------------------------
563 * EXAMPLE:
564 *----------------------------------------------------------------------------
565 * NOTE:
566 *----------------------------------------------------------------------------
567 * REQUIREMENTS:
568 *****************************************************************************/
569 void print_sound_level (void)
570 {
571 1 #if CONF_DISPLAY == LCD
// lcd_set_cur(POS_SOUND_LVL);
// print_decim(song_get_level(), FALSE);
#else
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -