Skip to content

Instantly share code, notes, and snippets.

@noopkat noopkat/test5.js
Last active Oct 18, 2015

What would you like to do?
OLED-js custom font testing
var five = require('johnny-five');
var board = new five.Board();
var Oled = require('oled-js');
// require your newly made font file
var mycoolfont = require('./mycoolfont.js');
// testing features
board.on('ready', function() {
// I2C va USB or whatever your settings are
var opts = {
width: 128,
height: 64,
address: 0x3D
var oled = new Oled(board, five, opts);
oled.setCursor(0, 0);
oled.writeString(mycoolfont, 1, "G'day mate", 1, true, 1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.