Skip to content

BuzzController

jackcarey edited this page Jul 18, 2022 · 6 revisions

The interface for the BuzzController class extends the Controller to add the functionality below.

lights

BuzzController.lights = 0b0000;

Uses a 4 bit binary number (0-15) to represent the state of each light from P1 to P4 as each column.

Examples:

  • All on: BuzzController.lights = 0b1111
  • All off: BuzzController.lights = 0b0000
  • P1 on only: BuzzController.lights = 0b1000
  • P2 on only: BuzzController.lights = 0b0100
  • P1 and P2 on: BuzzController.lights = 0b1100

lights_supported

let supported = BuzzController.lights_supported

Returns a boolean value for whether or not HID control is supported, for the lights.

Clone this wiki locally