Light Show library for organic, calm, light display.

Dependencies:   BLE_API mbed nRF51822

Fork of mbed_blinky by Mbed

utility.h

Committer:
nargetdev
Date:
2016-02-01
Revision:
27:a55dde8334f3
Parent:
26:8bc9984c4600

File content as of revision 27:a55dde8334f3:

#ifndef UTILITY_H
#define UTILITY_H

#include "rgb_led.h"

//extern Serial pc(USBTX, USBRX); // tx, rx


/* returns 32 bit hash for x */
unsigned int hash(unsigned int x);

/** This procedure is for identifying the firmware revision.
*   Hashes a random seed to a sequence of colors to be displayed on LEDs
*   Should be portable to other means of output.
**/
void identify(unsigned int m, Rgb&);

#endif