{"size": 345, "ext": "js", "max_stars_repo_path": "examples/ex_spi_128x64.js", "max_stars_repo_name": "niklauslee/ssd1306", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "examples/ex_spi_128x64.js", "max_issues_repo_name": "niklauslee/ssd1306", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "examples/ex_spi_128x64.js", "max_forks_repo_name": "niklauslee/ssd1306", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 16.4285714286, "max_line_length": 47, "alphanum_fraction": 0.6231884058}
/**
 * Example for display 128x64 via SPI
 */

const { SSD1306 } = require("../spi");
const showcase = require("./gc-mono-showcase");

const ssd1306 = new SSD1306();
ssd1306.setup(board.spi(0), {
  width: 128,
  height: 64,
  dc: 20,
  rst: 21,
  cs: 17,
  extVcc: false,
  rotation: 0,
});

const gc = ssd1306.getContext();
showcase(gc, 3000);
