{"size": 605, "ext": "js", "max_stars_repo_path": "software/tonetester.js", "max_stars_repo_name": "MatthewStein/campusbadge", "max_stars_repo_stars_event_min_datetime": "2019-10-29T19:25:50.000Z", "max_stars_repo_stars_event_max_datetime": "2019-10-29T23:33:55.000Z", "max_issues_repo_path": "software/tonetester.js", "max_issues_repo_name": "MatthewStein/campusbadge", "max_issues_repo_issues_event_min_datetime": "2019-10-04T14:27:05.000Z", "max_issues_repo_issues_event_max_datetime": "2019-10-23T15:32:25.000Z", "max_forks_repo_path": "software/tonetester.js", "max_forks_repo_name": "MatthewStein/campusbadge", "max_forks_repo_forks_event_min_datetime": "2019-10-30T07:46:49.000Z", "max_forks_repo_forks_event_max_datetime": "2019-10-31T20:12:37.000Z"}
{"max_stars_count": 2, "max_issues_count": 3, "max_forks_count": 2, "avg_line_length": 18.90625, "max_line_length": 54, "alphanum_fraction": 0.5983471074}
var tone=false;

function toggleTone(){
  
  tone = !tone; 
  if (tone){
    analogWrite(A0, 0.9, { soft: false, freq: 392});
    
  } else {
    analogWrite(A0, 0, { soft: false, freq: 392});
  }
  LED1.write(tone);
  
  
}  

setWatch(function() {
    toggleTone();
  }, BTN1, {edge:"rising", debounce:50, repeat:true});

setWatch(function() {
    toggleTone();
}, BTN2, {edge:"rising", debounce:50, repeat:true});

setWatch(function() {
    toggleTone();
}, BTN3, {edge:"rising", debounce:50, repeat:true});

setWatch(function() {
    toggleTone();
}, BTN4, {edge:"rising", debounce:50, repeat:true});
