comparison src/menu_tree.asm @ 646:5b7fe7777425

3.16 release
author heinrichs weikamp
date Thu, 14 Oct 2021 12:03:24 +0200
parents 8c1f1f334275
children 357341239438
comparison
equal deleted inserted replaced
642:a9a0188091e4 646:5b7fe7777425
1336 PUTC "-" ; print a separator 1336 PUTC "-" ; print a separator
1337 movff C5+1,WREG ; get C5, high byte 1337 movff C5+1,WREG ; get C5, high byte
1338 output_hex ; print C5, high byte 1338 output_hex ; print C5, high byte
1339 movff C5+0,WREG ; get C5, low byte 1339 movff C5+0,WREG ; get C5, low byte
1340 output_hex ; print C5, low byte 1340 output_hex ; print C5, low byte
1341 return ; done 1341 btfss press_sensor_type ; =1: pressure sensor MS5837, =0: Pressure sensor MS5541
1342 return ; MS5541, done
1343 PUTC "*"
1344 return ; MS5837, done
1345
1342 1346
1343 1347
1344 ;----------------------------------------------------------------------------- 1348 ;-----------------------------------------------------------------------------
1345 ; dynamic Title - show Pressure Sensor Offset Setting 1349 ; dynamic Title - show Pressure Sensor Offset Setting
1346 ; 1350 ;
1531 ; Settings Menu - 2nd Layer - Display Settings - Page 1 1535 ; Settings Menu - 2nd Layer - Display Settings - Page 1
1532 ; 1536 ;
1533 do_menu_dispsets: 1537 do_menu_dispsets:
1534 IF _language_2!=none 1538 IF _language_2!=none
1535 MENU_BEGIN tDispSets, .7 1539 MENU_BEGIN tDispSets, .7
1536 MENU_OPT_INC tBright, oBrightness 1540 MENU_CALL tBright, do_menu_Brightness
1537 MENU_OPT_INC tLayout, oLayout 1541 MENU_OPT_INC tLayout, oLayout
1538 MENU_OPT_INC tUnits, oUnits 1542 MENU_OPT_INC tUnits, oUnits
1539 MENU_OPT_INC tLanguage, oLanguage 1543 MENU_OPT_INC tLanguage, oLanguage
1540 MENU_OPT_INC tFlip, oFlipScreen 1544 MENU_OPT_INC tFlip, oFlipScreen
1541 MENU_CALL tColorScheme, do_menu_color_scheme 1545 MENU_CALL tColorScheme, do_menu_color_scheme
1542 MENU_CALL tMore, do_menu_dispsets_more 1546 MENU_CALL tMore, do_menu_dispsets_more
1543 MENU_END 1547 MENU_END
1544 ELSE 1548 ELSE
1545 MENU_BEGIN tDispSets, .6 1549 MENU_BEGIN tDispSets, .6
1546 MENU_OPT_INC tBright, oBrightness 1550 MENU_CALL tBright, do_menu_Brightness
1547 MENU_OPT_INC tLayout, oLayout 1551 MENU_OPT_INC tLayout, oLayout
1548 MENU_OPT_INC tUnits, oUnits 1552 MENU_OPT_INC tUnits, oUnits
1549 MENU_OPT_INC tFlip, oFlipScreen 1553 MENU_OPT_INC tFlip, oFlipScreen
1550 MENU_CALL tColorScheme, do_menu_color_scheme 1554 MENU_CALL tColorScheme, do_menu_color_scheme
1551 MENU_CALL tMore, do_menu_dispsets_more 1555 MENU_CALL tMore, do_menu_dispsets_more
1552 MENU_END 1556 MENU_END
1553 ENDIF 1557 ENDIF
1554 1558
1555 1559 ;-----------------------------------------------------------------------------
1560 ; Settings Menu - 3rd Layer - Display Settings - Brightness
1561 ;
1562 do_menu_Brightness:
1563 MENU_BEGIN tBright, .3
1564 MENU_OPT_INC tDvMode, oBrightness_dive
1565 MENU_OPT_INC tBrightsurface, oBrightness_surface
1566 MENU_CALL tBack, do_return_dispsets_menu
1567 MENU_END
1568
1569
1556 ;----------------------------------------------------------------------------- 1570 ;-----------------------------------------------------------------------------
1557 ; Settings Menu - 3rd Layer - Display Settings - Color Schemes 1571 ; Settings Menu - 3rd Layer - Display Settings - Color Schemes
1558 ; 1572 ;
1559 do_menu_color_scheme: 1573 do_menu_color_scheme:
1560 bsf imprint_color_schemes ; activate color schemes demonstration 1574 bsf imprint_color_schemes ; activate color schemes demonstration