📄 exper.lst
字号:
1252 1 }
1253
1254 void AdiustVert()
1255 {
1256 1 int i;
1257 1 ResetKey();
1258 1 OpenOSDWindow(3,6,1,21,8,cyan,0);
1259 1 gotoxy(6,2);
1260 1 PrintString(statusVHValue,8,green);
1261 1 gotoxy(11,2);
1262 1 PrintDecCode(VertPosition,red);
1263 1 gotoxy(7,5);
1264 1 for(i=0;i<12;i++)
1265 1 Putuserchar(VertPSW1[i],yellow);
1266 1 gotoxy(7,6);
1267 1 for(i=0;i<12;i++)
1268 1 Putuserchar(VertPSW2[i],yellow);
1269 1 gotoxy(7,7);
1270 1 for(i=0;i<8;i++)
1271 1 PutChar(VertPSW6[i],yellow);
1272 1 WaitKeyup();//*************************8
1273 1 while(KeyLayer3!=0)
1274 1 {
1275 2
1276 2 if((KeySelect1==1)&&(KeyLayer3==1))
1277 2 {
1278 3 delay(50);
1279 3 VertPosition-=1;
1280 3 SendOSDCmd(15,12,VertPosition);
1281 3 //CloseOSDWindow(3);
1282 3 gotoxy(11,2);
1283 3 PrintDecCode(VertPosition,red);
1284 3 ResetKey();
1285 3 }
1286 2 if((KeySelect2==1)&&(KeyLayer3==1))
1287 2 {
1288 3 delay(50);
1289 3 VertPosition+=1;
1290 3 SendOSDCmd(15,12,VertPosition);
1291 3 //CloseOSDWindow(3);
C51 COMPILER V7.06 EXPER 06/08/2006 15:01:13 PAGE 22
1292 3 gotoxy(11,2);
1293 3 PrintDecCode(VertPosition,red);
1294 3 ResetKey();
1295 3 }
1296 2 if((KeySelect6==1)&&(KeyLayer3==1))
1297 2 {
1298 3 delay(150);
1299 3
1300 3 KeyLayer3=0;
1301 3 KeyLayer2=1;
1302 3 WaitKeyup();//**************
1303 3 SecondMenuFlg=1;
1304 3 ClearOSD();
1305 3 }
1306 2 }
1307 1 SecondMenuFlg=1;
1308 1 }
1309
1310 void AdiustHorr()
1311 {
1312 1 int i;
1313 1 ResetKey();
1314 1 OpenOSDWindow(3,6,1,21,8,cyan,0);
1315 1 gotoxy(6,2);
1316 1 PrintString(statusHValue,5,green);
1317 1 gotoxy(11,2);
1318 1 PrintDecCode(HorrPosition,red);
1319 1 gotoxy(7,5);
1320 1 for(i=0;i<12;i++)
1321 1 Putuserchar(HorrPSW1[i],yellow);
1322 1 gotoxy(7,6);
1323 1 for(i=0;i<12;i++)
1324 1 Putuserchar(HorrPSW2[i],yellow);
1325 1 gotoxy(7,7);
1326 1 for(i=0;i<8;i++)
1327 1 PutChar(HorrPSW6[i],yellow);
1328 1 WaitKeyup();//*************************
1329 1 while(KeyLayer3!=0)
1330 1 {
1331 2
1332 2 if((KeySelect1==1)&&(KeyLayer3==1))
1333 2 {
1334 3 delay(50);
1335 3 HorrPosition+=1;
1336 3 SendOSDCmd(15,13,HorrPosition);
1337 3 //CloseOSDWindow(3);
1338 3 gotoxy(11,2);
1339 3 PrintDecCode(HorrPosition,red);
1340 3 ResetKey();
1341 3 }
1342 2 if((KeySelect2==1)&&(KeyLayer3==1))
1343 2 {
1344 3 delay(50);
1345 3 HorrPosition-=1;
1346 3 SendOSDCmd(15,13,HorrPosition);
1347 3 //CloseOSDWindow(3);
1348 3 gotoxy(11,2);
1349 3 PrintDecCode(HorrPosition,red);
1350 3 ResetKey();
1351 3 }
1352 2 if((KeySelect6==1)&&(KeyLayer3==1))
1353 2 {
C51 COMPILER V7.06 EXPER 06/08/2006 15:01:13 PAGE 23
1354 3 delay(150);
1355 3
1356 3 KeyLayer3=0;
1357 3 KeyLayer2=1;
1358 3 WaitKeyup();//**************
1359 3 SecondMenuFlg=1;
1360 3 ClearOSD();
1361 3 }
1362 2 }
1363 1 SecondMenuFlg=1;
1364 1 }
1365
1366 void ShowSecondModuleTest()
1367 {
1368 1
1369 1 ResetKey();
1370 1 ClearOSD();
1371 1 ShowVertHorr();
1372 1 WaitKeyup();//***********************8
1373 1 do
1374 1 {
1375 2 if((KeySelect1==1)&&(KeyLayer2==1))
1376 2 {
1377 3 delay(50);
1378 3 ClearOSD();
1379 3 KeyLayer2=0;
1380 3 KeyLayer3=1;
1381 3 ResetKey();
1382 3 AdiustVert();
1383 3 }
1384 2 if((KeySelect2==1)&&(KeyLayer2==1))
1385 2 {
1386 3 delay(50);
1387 3 ClearOSD();
1388 3 KeyLayer2=0;
1389 3 KeyLayer3=1;
1390 3 AdiustHorr();
1391 3 }
1392 2 if((KeySelect6==1)&&(KeyLayer2==1))
1393 2 {
1394 3 delay(200);
1395 3
1396 3 KeyLayer2=0;
1397 3 KeyLayer1=1;
1398 3 WaitKeyup();//**************
1399 3 ClearOSD();
1400 3 }
1401 2 if(SecondMenuFlg==1)
1402 2 {
1403 3 ShowVertHorr();
1404 3 SecondMenuFlg=0;
1405 3 }
1406 2 }while(KeyLayer2!=0);
1407 1 SecondMenuFlg=0;
1408 1 MainMenuFlg=1;
1409 1 }
1410 void ShowVCOHORRTest()
1411 {
1412 1 ResetKey();
1413 1 ClearOSD();
1414 1 ShowVCOHORR();
1415 1 WaitKeyup();//***************************888888
C51 COMPILER V7.06 EXPER 06/08/2006 15:01:13 PAGE 24
1416 1 do
1417 1 {
1418 2 if((KeySelect1==1)&&(KeyLayer2==1))
1419 2 {
1420 3 delay(200);
1421 3 KeyLayer2=0;
1422 3 KeyLayer3=1;
1423 3 ResetKey();
1424 3 AdjustVCO();
1425 3 }
1426 2 if((KeySelect2==1)&&(KeyLayer2==1))
1427 2 {
1428 3 delay(250);
1429 3 ResetKey();
1430 3 KeyLayer2=0;
1431 3 KeyLayer3=1;
1432 3 //ResetKey();
1433 3 AdjustHORR();
1434 3 }
1435 2 if((KeySelect6==1)&&(KeyLayer2==1))
1436 2 {
1437 3 delay(200);
1438 3 KeyLayer2=0;
1439 3 KeyLayer1=1;
1440 3 WaitKeyup();//**************
1441 3 ClearOSD();
1442 3 //break;
1443 3 }
1444 2 if(SecondMenuFlg==1)
1445 2 {
1446 3 ShowVCOHORR();
1447 3 SecondMenuFlg=0;
1448 3 }
1449 2 }while(KeyLayer2!=0);
1450 1 SecondMenuFlg=0;
1451 1 MainMenuFlg=1;
1452 1 }
1453 void ResetKey()
1454 {
1455 1 KeySelect1=0;
1456 1 KeySelect2=0;
1457 1 KeySelect3=0;
1458 1 KeySelect4=0;
1459 1 KeySelect5=0;
1460 1 KeySelect6=0;
1461 1 }
1462
1463 void WaitKeyup()//waitting for the key up
1464 {
1465 1 ResetKey();
1466 1 while(1)
1467 1 {ResetKey();
1468 2 delay(30);
1469 2 if((KeySelect1==0)&&(KeySelect2==0)&&(KeySelect3==0)&&(KeySelect4==0)&&(KeySelect5==0)&&(KeySelect6==
-0))
1470 2 break;
1471 2 }
1472 1
1473 1
1474 1 }
1475 //----------------------------------------------------
1476 void ShowMain()
C51 COMPILER V7.06 EXPER 06/08/2006 15:01:13 PAGE 25
1477 {
1478 1 ClearOSD();
1479 1 /*
1480 1 switch(Freqflag)
1481 1 {
1482 1 case 1:
1483 1 InitOSD31();
1484 1 break;
1485 1 case 2:
1486 1 InitOSD47();
1487 1 break;
1488 1 case 3:
1489 1 InitOSD63();
1490 1 break;
1491 1 case 4:
1492 1 InitOSD95();
1493 1 break;
1494 1 }*/
1495 1 InitOSD();
1496 1 TurnOSD(1);
1497 1 OpenOSDWindow(2,3,1,23,9,blue,0);
1498 1 OpenOSDWindow(1,3,2,23,7,cyan,0);
1499 1 gotoxy(7,1);
1500 1 PrintString(mysonlogo,13,red);
1501 1 gotoxy(4,2);
1502 1 PrintString(ShowOSDFontall,18,yellow);
1503 1 gotoxy(4,3);
1504 1 PrintString(Showhorrvcoad,19,yellow);
1505 1 gotoxy(4,4);
1506 1 PrintString(Showposad,19,yellow);
1507 1 gotoxy(4,5);
1508 1 PrintString(ShowInISPMode,18,yellow);
1509 1 gotoxy(4,6);
1510 1 PrintString(Showdemo,14,yellow);
1511 1 gotoxy(4,7);
1512 1 PrintString(HorrPSW6,8,yellow);
1513 1 gotoxy(4,8);
1514 1 PrintString(DemoBoard,15,white);
1515 1 gotoxy(4,9);
1516 1 PrintString(WebSite1,16,white);
1517 1 KeyLayer1=1;
1518 1 }
1519 /*
1520 void Initmoudletest31(void)
1521 {
1522 VertPosition=0x20;
1523 HorrPosition=0x0b;
1524 ChHeight=0x05;
1525 SendHORR(0x0b,0x20,0x05,0x42,0x28);
1526
1527 uchar i;
1528 uchar buf[4];
1529 SendOSDCmd(15,18,0x42);//important for mtv021
1530 SendOSDCmd(15,15,0x28);
1531 delay(50);
1532 SendOSDCmd(15,19,0x00);
1533 SendOSDCmd(15,12,0x20);
1534 SendOSDCmd(15,13,0x0b);
1535 SendOSDCmd(15,16,0);
1536 //SendOSDCmd(15,20,0x00);
1537 SendOSDCmd(15,14,0x05);//this is important
1538
C51 COMPILER V7.06 EXPER 06/08/2006 15:01:13 PAGE 26
1539 buf[0]=0x7a;
1540 buf[2]=30; // column
1541 buf[3]=0x10; //Select background color bits and no double size of characters
1542 for(i=0;i<=14;i++) // row value(0-14
1543 { //
1544 buf[1]= ( 0x80 | i ); //
1545 SendIIC(buf,4); //
1546 } // Row Attribute
1547 for(i=0;i<4;i++)
1548 CloseOSDWindow(i);
1549 }
1550 void Initmoudletest47(void)
1551 {
1552 VertPosition=0x39;
1553 HorrPosition=0x09;
1554 ChHeight=0x05;
1555 SendHORR(0x09,0x39,0x05,0x42,0x28);
1556 }
1557 void Initmoudletest63(void)
1558 {
1559 VertPosition=0x55;
1560 HorrPosition=0x06;
1561 ChHeight=0x05;
1562 SendHORR(0x06,0x55,0x05,0x42
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -