This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// LaunchPad built-in hardware | |
// SW1 left switch is negative logic PF4 on the Launchpad | |
// SW2 right switch is negative logic PF0 on the Launchpad | |
// red LED connected to PF1 on the Launchpad | |
// blue LED connected to PF2 on the Launchpad | |
// green LED connected to PF3 on the Launchpad | |
// 1. Pre-processor Directives Section | |
// Constant declarations to access port registers using | |
// symbolic names instead of addresses |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// LaunchPad built-in hardware | |
// SW1 left switch is negative logic PF4 on the Launchpad | |
// SW2 right switch is negative logic PF0 on the Launchpad | |
// red LED connected to PF1 on the Launchpad | |
// blue LED connected to PF2 on the Launchpad | |
// green LED connected to PF3 on the Launchpad | |
// 1. Pre-processor Directives Section | |
// Constant declarations to access port registers using | |
// symbolic names instead of addresses |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.getElementById("form-branch::categorySection::itemrow::renderedItem::nextrow:1:verticalDisplay::scaleOption:0:radioValue").checked = true; | |
document.getElementById("form-branch::categorySection::itemrow:1:renderedItem::nextrow:2:verticalDisplay::scaleOption:0:radioValue").checked = true; | |
document.getElementById("form-branch::categorySection::itemrow:2:renderedItem::nextrow:3:verticalDisplay::scaleOptions:0:choiceValue").checked = true; | |
document.getElementById("form-branch::categorySection::itemrow:3:renderedItem::nextrow:4:verticalDisplay::scaleOptions:0:choiceValue").checked = true; | |
document.getElementById("form-branch::categorySection::itemrow:4:renderedItem::nextrow:5:verticalDisplay::scaleOptions:0:choiceValue").checked = true; | |
document.getElementById("form-branch::categorySection::itemrow:5:renderedItem::nextrow:6:verticalDisplay::scaleOption:0:radioValue").checked = true; | |
document.getElementById("form-branch::categorySection::itemrow:6:renderedItem::nextrow:7:verticalDisplay::scaleOptions:0:choi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var array_length; | |
/* to create MAX array */ | |
function heap_root(input, i) { | |
var left = 2 * i + 1; | |
var right = 2 * i + 2; | |
var max = i; | |
if (left < array_length && input[left] > input[max]) { | |
max = left; | |
} |