This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

steelseries-screen-controller
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

SteelSeries Screen Controller

Controller for oled screens on SteelSeries Devices

Installation

Install with npm

npm install steelseries-screen-controller

Documentation

github wiki page

Example

import { Display, Font } from "steelseries-screen-controller";
// or
const { Display, Font } = require("steelseries-screen-controller");

(async () => {
	const display = new Display(128, 36) // create Display object with 128x36 pixel resolution (for Rival 700/710)

	const font = await Font.create("./8x8.png") // load custom font from 8x8.png

	// draw "Hello World!" in the center of the display
	display.drawText({
		x: display.width / 2,
		y: display.height / 2,
		font: font, // use custom font loaded previously
		color: 1, // use color 1 (white)
		text: "Hello World!",
		vertical_align: "middle",
		horizontal_align: "center",
	})
	// result is "ready to use" in SteelSeries GameSense™ SDK (<array of length 576>)
	const result = display.get()
})()

License

CC BY-NC-SA 4.0

Readme

Keywords

Package Sidebar

Install

npm i steelseries-screen-controller

Weekly Downloads

3

Version

1.0.1

License

CC BY-NC-SA 4.0

Unpacked Size

48.5 kB

Total Files

24

Last publish

Collaborators

  • aidan647