UPM

The UPM API is a high level sensor library for IoT devices using MRAA. See examples here. Back to index page.
SparkFun sensor images provided under CC BY-NC-SA-3.0.

LoL Class

Module: lol
  • ID: lol
  • Name: Lots of LEDs ( LoL ) Array Rev A
  • Category: display
  • Manufacturer: adafruit
  • Connection: gpio

This module defines the LoL API and implementation for a simple framebuffer.
lolshield.jpg

Item Index

Methods

LoL

() Number

Instantiates an LoL object singleton

Returns:

Number:

getFramebuffer

() String

Gets a framebuffer pointer

Returns:

String:

0 if successful

getPixel

(
  • x
  • y
)
Boolean

Gets a pixel at specified coordinates

Parameters:

  • x Number

    Coordinate x

  • y Number

    Coordinate y

Returns:

Boolean:

true if the pixel is on, false if off

setPixel

(
  • x
  • y
  • pixel
)

Sets a pixel at specified coordinates

Parameters:

  • x Number

    Coordinate x

  • y Number

    Coordinate y

  • pixel Boolean

    false is off, true is on