Mercurial > public > hwos_code
comparison src/tft_outputs.asm @ 67:7815bf21d353
second debug mode page
author | heinrichsweikamp |
---|---|
date | Sat, 11 Jan 2014 22:36:17 +0100 |
parents | e7c7c7eeea58 |
children | a5ea132770db |
comparison
equal
deleted
inserted
replaced
66:00636132cca6 | 67:7815bf21d353 |
---|---|
1321 | 1321 |
1322 ; call TFT_serial | 1322 ; call TFT_serial |
1323 bcf leftbind | 1323 bcf leftbind |
1324 return | 1324 return |
1325 | 1325 |
1326 global TFT_update_raw_data2 | |
1327 TFT_update_raw_data2: | |
1328 call TFT_standard_color | |
1329 WIN_TINY .0,.0 | |
1330 STRCPY "pres:" | |
1331 SAFE_2BYTE_COPY amb_pressure, lo | |
1332 movlw .5 ;>1280mbar | |
1333 cpfslt hi | |
1334 call TFT_warnings_color | |
1335 bsf leftbind | |
1336 output_16 | |
1337 STRCAT_PRINT "mbar " | |
1338 WIN_TINY .80,.0 | |
1339 STRCPY "temp:" | |
1340 SAFE_2BYTE_COPY temperature, lo | |
1341 call TFT_convert_signed_16bit ; converts lo:hi into signed-short and adds '-' to POSTINC2 if required | |
1342 movlw d'3' | |
1343 movwf ignore_digits | |
1344 output_16dp d'2' ; temperature | |
1345 STRCAT_PRINT "°C " | |
1346 | |
1347 call TFT_standard_color | |
1348 WIN_TINY .0,.18 | |
1349 STRCPY "D1:" | |
1350 movff D1+0,lo | |
1351 movff D1+1,hi | |
1352 output_16 | |
1353 STRCAT_PRINT "" | |
1354 WIN_TINY .80,.18 | |
1355 STRCPY "D2:" | |
1356 movff D2+0,lo | |
1357 movff D2+1,hi | |
1358 output_16 | |
1359 STRCAT_PRINT "" | |
1360 | |
1361 ; C1-C6 | |
1362 WIN_TINY .0,.36 | |
1363 STRCPY "C1:" | |
1364 movff C1+0,lo | |
1365 movff C1+1,hi | |
1366 output_16 | |
1367 STRCAT_PRINT "" | |
1368 WIN_TINY .80,.36 | |
1369 STRCPY "C2:" | |
1370 movff C2+0,lo | |
1371 movff C2+1,hi | |
1372 output_16 | |
1373 STRCAT_PRINT "" | |
1374 | |
1375 WIN_TINY .0,.54 | |
1376 STRCPY "C3:" | |
1377 movff C3+0,lo | |
1378 movff C3+1,hi | |
1379 output_16 | |
1380 STRCAT_PRINT "" | |
1381 WIN_TINY .80,.54 | |
1382 STRCPY "C4:" | |
1383 movff C4+0,lo | |
1384 movff C4+1,hi | |
1385 output_16 | |
1386 STRCAT_PRINT "" | |
1387 | |
1388 WIN_TINY .0,.72 | |
1389 STRCPY "C5:" | |
1390 movff C5+0,lo | |
1391 movff C5+1,hi | |
1392 output_16 | |
1393 STRCAT_PRINT "" | |
1394 WIN_TINY .80,.72 | |
1395 STRCPY "C6:" | |
1396 movff C6+0,lo | |
1397 movff C6+1,hi | |
1398 output_16 | |
1399 STRCAT_PRINT "" | |
1400 | |
1401 ; WIN_TINY .0,.90 | |
1402 ; STRCPY "Sens1.:" | |
1403 ; movff o2_mv_sensor1+0,lo | |
1404 ; movff o2_mv_sensor1+1,hi | |
1405 ; output_16dp d'4' | |
1406 ; STRCAT_PRINT "mV " | |
1407 ; WIN_TINY .80,.90 | |
1408 ; STRCPY "Sens2:" | |
1409 ; movff o2_mv_sensor2+0,lo | |
1410 ; movff o2_mv_sensor2+1,hi | |
1411 ; output_16dp d'4' | |
1412 ; STRCAT_PRINT "mV " | |
1413 ; | |
1414 ; WIN_TINY .0,.108 | |
1415 ; STRCPY "Sens3.:" | |
1416 ; movff o2_mv_sensor3+0,lo | |
1417 ; movff o2_mv_sensor3+1,hi | |
1418 ; output_16dp d'4' | |
1419 ; STRCAT_PRINT "mV " | |
1420 ; WIN_TINY .80,.108 ; Space | |
1421 ; | |
1422 ; WIN_TINY .0,.128 | |
1423 ; STRCPY "ccDX:" | |
1424 ; movff compass_DX_f+0,lo ; Display calibrated data | |
1425 ; movff compass_CX_f+0,WREG ; by substracting compass_CX_f | |
1426 ; subwf lo,F ; lo := lo - W | |
1427 ; movff compass_DX_f+1,hi | |
1428 ; movff compass_CX_f+1,WREG | |
1429 ; subwfb hi,F | |
1430 ; call TFT_convert_signed_16bit ; converts lo:hi into signed-short and adds '-' to POSTINC2 if required | |
1431 ; output_16 | |
1432 ; STRCAT_PRINT " " | |
1433 ; WIN_TINY .80,.128 | |
1434 ; STRCPY "ccDY:" | |
1435 ; movff compass_DY_f+0,lo | |
1436 ; movff compass_CY_f+0,WREG | |
1437 ; subwf lo,F | |
1438 ; movff compass_DY_f+1,hi | |
1439 ; movff compass_CY_f+1,WREG | |
1440 ; subwfb hi,F | |
1441 ; call TFT_convert_signed_16bit ; converts lo:hi into signed-short and adds '-' to POSTINC2 if required | |
1442 ; output_16 | |
1443 ; STRCAT_PRINT " " | |
1444 ; WIN_TINY .0,.146 | |
1445 ; STRCPY "ccDZ:" | |
1446 ; movff compass_DZ_f+0,lo | |
1447 ; movff compass_CZ_f+0,WREG | |
1448 ; subwf lo,F | |
1449 ; movff compass_DZ_f+1,hi | |
1450 ; movff compass_CZ_f+1,WREG | |
1451 ; subwfb hi,F | |
1452 ; call TFT_convert_signed_16bit ; converts lo:hi into signed-short and adds '-' to POSTINC2 if required | |
1453 ; output_16 | |
1454 ; STRCAT_PRINT " " | |
1455 ; WIN_TINY .80,.146 ; Space | |
1456 ; | |
1457 ; WIN_TINY .0,.164 | |
1458 ; STRCPY "AcDX:" | |
1459 ; movff accel_DX_f+0,lo | |
1460 ; movff accel_DX_f+1,hi | |
1461 ; call TFT_convert_signed_16bit ; converts lo:hi into signed-short and adds '-' to POSTINC2 if required | |
1462 ; output_16 | |
1463 ; STRCAT_PRINT "mg " | |
1464 ; WIN_TINY .80,.164 | |
1465 ; STRCPY "AcDY:" | |
1466 ; movff accel_DY_f+0,lo | |
1467 ; movff accel_DY_f+1,hi | |
1468 ; call TFT_convert_signed_16bit ; converts lo:hi into signed-short and adds '-' to POSTINC2 if required | |
1469 ; output_16 | |
1470 ; STRCAT_PRINT "mg " | |
1471 ; WIN_TINY .0,.182 | |
1472 ; STRCPY "AcDZ:" | |
1473 ; movff accel_DZ_f+0,lo | |
1474 ; movff accel_DZ_f+1,hi | |
1475 ; call TFT_convert_signed_16bit ; converts lo:hi into signed-short and adds '-' to POSTINC2 if required | |
1476 ; output_16 | |
1477 ; STRCAT_PRINT "mg " | |
1478 ; | |
1479 ; WIN_TINY .80,.182 | |
1480 ; STRCPY "Head:" | |
1481 ; movff compass_heading+0,lo | |
1482 ; movff compass_heading+1,hi | |
1483 ; | |
1484 ; WIN_TINY .0,.200 | |
1485 ; STRCPY "calX:" | |
1486 ; movff compass_CX_f+0,lo | |
1487 ; movff compass_CX_f+1,hi | |
1488 ; call TFT_convert_signed_16bit ; converts lo:hi into signed-short and adds '-' to POSTINC2 if required | |
1489 ; output_16 | |
1490 ; STRCAT ", " | |
1491 ; movff compass_CY_f+0,lo | |
1492 ; movff compass_CY_f+1,hi | |
1493 ; call TFT_convert_signed_16bit ; converts lo:hi into signed-short and adds '-' to POSTINC2 if required | |
1494 ; output_16 | |
1495 ; STRCAT ", " | |
1496 ; movff compass_CZ_f+0,lo | |
1497 ; movff compass_CZ_f+1,hi | |
1498 ; call TFT_convert_signed_16bit ; converts lo:hi into signed-short and adds '-' to POSTINC2 if required | |
1499 ; output_16 | |
1500 ; STRCAT_PRINT " " | |
1501 ; | |
1502 ; WIN_TINY .0,.218 | |
1503 ; STRCPY "Roll:" | |
1504 ; movff compass_roll+0,lo | |
1505 ; movff compass_roll+1,hi | |
1506 ; call TFT_convert_signed_16bit | |
1507 ; output_16 | |
1508 ; STRCAT_PRINT " " | |
1509 ; | |
1510 ; WIN_TINY .80, .218 | |
1511 ; STRCPY "Pitch:" | |
1512 ; movff compass_pitch+0,lo | |
1513 ; movff compass_pitch+1,hi | |
1514 ; call TFT_convert_signed_16bit | |
1515 ; output_16 | |
1516 ; STRCAT_PRINT " " | |
1517 | |
1518 call TFT_serial | |
1519 bcf leftbind | |
1520 return | |
1521 | |
1522 | |
1326 global TFT_surface_decosettings ; Show all deco settings | 1523 global TFT_surface_decosettings ; Show all deco settings |
1327 TFT_surface_decosettings: | 1524 TFT_surface_decosettings: |
1328 ; Deco Mode | 1525 ; Deco Mode |
1329 call TFT_standard_color | 1526 call TFT_standard_color |
1330 movff char_I_deco_model,WREG | 1527 movff char_I_deco_model,WREG |