HiveMind
Functions
BittyBuzzUIFunctions Namespace Reference

Buzz library that provides functions for the user to interact with the UI of the platform (LED, Hex display, etc) More...

Functions

void setLed ()
 Sets the user LED on or off Signature set_led(arg1) More...
 
void setHex ()
 Sets the user sevent segment to a value Signature set_hex(arg1) More...
 

Detailed Description

Buzz library that provides functions for the user to interact with the UI of the platform (LED, Hex display, etc)

Function Documentation

◆ setHex()

void BittyBuzzUIFunctions::setHex ( )

Sets the user sevent segment to a value Signature set_hex(arg1)

This closure expects an int and will bound between 0 and 15

ui.set_hex(6); # 0x06
ui.set_hex(10); # 0x0A
ui.set_hex(20); # Bounded 0x0F
ui.set_hex(-30); # Bounded 0x00
ui.set_hex(""); # Type error
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setLed()

void BittyBuzzUIFunctions::setLed ( )

Sets the user LED on or off Signature set_led(arg1)

This closure expects an epxression. all ints that are not 0 evaluates to true (led on), all other types evaluates to false (led off)

ui.set_led(1); # on
ui.set_led(16); # on
ui.set_led(0); # off
ui.set_led(nil); # off
ui.set_led(""); # off
Here is the call graph for this function:
Here is the caller graph for this function: