Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Ananthu Subramanian Ananthusubramanian

🏠
Working from home
View GitHub Profile
@Ananthusubramanian
Ananthusubramanian / main1.c
Last active May 4, 2019
Embedded Labsheet 9
View main1.c
// 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
View Labsheet10.txt
// 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
@Ananthusubramanian
Ananthusubramanian / Submit.js
Last active Jul 29, 2020
Evaluation submit in AUMS Amrita automate
View Submit.js
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
View Program.js
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;
}