{"size": 273, "ext": "js", "max_stars_repo_path": "middleware/jsengine/scripts/drivers/sensors/voltage/lm393/src/index.js", "max_stars_repo_name": "ruoranluomu/AliOS-Things", "max_stars_repo_stars_event_min_datetime": "2018-08-20T08:33:55.000Z", "max_stars_repo_stars_event_max_datetime": "2018-11-28T03:19:22.000Z", "max_issues_repo_path": "middleware/jsengine/scripts/drivers/sensors/voltage/lm393/src/index.js", "max_issues_repo_name": "ewfweftwer/AliOS-Things", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "middleware/jsengine/scripts/drivers/sensors/voltage/lm393/src/index.js", "max_forks_repo_name": "ewfweftwer/AliOS-Things", "max_forks_repo_forks_event_min_datetime": "2020-11-04T04:36:37.000Z", "max_forks_repo_forks_event_max_datetime": "2021-11-10T08:05:49.000Z"}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": 5, "avg_line_length": 19.5, "max_line_length": 57, "alphanum_fraction": 0.5860805861}
/*
 * Copyright (C) 2015-2018 Alibaba Group Holding Limited
 */
var lm393 = function (id) {

  this.handle = GPIO.open(id);
  this.check = function () {
    var val = GPIO.read(this.handle);
    if (val) return 0;
    return 1;
  };
};

module.exports = lm393;