<commit_before><commit_msg>input.js will be the starting test case for attachInterrupt<commit_after>var bb = require('./bonescript');

var outputPin = bone.P8_3;
var inputPin = bone.P8_5;

var handler = function(data) {
    console.log('inputPin changed: ' + data);
};

setup = function() {
    console.log('inputPin mode: ' + JSON.stringify(getPinMode(inputPin)));
    console.log('outputPin mode: ' + JSON.stringify(getPinMode(outputPin)));
    pinMode(inputPin, INPUT);
    pinMode(outputPin, OUTPUT);
    console.log('inputPin mode: ' + JSON.stringify(getPinMode(inputPin)));
    console.log('outputPin mode: ' + JSON.stringify(getPinMode(outputPin)));
    attachInterrupt(inputPin, handler, CHANGE);
};

loop = function() {
    digitalWrite(outputPin, HIGH);
    delay(1000);
    digitalWrite(outputPin, LOW);
    delay(1000);
};

bb.run();
{'fraction_non_alphanumeric': 0.15384615384615385, 'fraction_numerical': 0.014201183431952662, 'mean_word_length': 4.916083916083916, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2901754', 'n_tokens_mistral': 282, 'n_tokens_neox': 272, 'n_words': 53}