This is a part of the Kinetiszer project.

Dependents:   SoundEngine

Revision:
0:5a419ba2726d
diff -r 000000000000 -r 5a419ba2726d util.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/util.h	Tue Oct 28 12:19:22 2014 +0000
@@ -0,0 +1,19 @@
+#ifndef __UTIL_H__
+#define __UTIL_H__
+
+
+// From Arduino.h
+#define bitRead(value,bit)  (((value) >> (bit)) & 0x01)
+#define bitSet(value,bit)  ((value) |= (1UL << (bit)))
+#define bitClear(value,bit)  ((value) &= ~(1UL << (bit)))
+#define bitWrite(value,bit, bitvalue)  (bitvalue ? bitSet(value,bit) : bitClear(value,bit))
+
+long map(long x, long in_min, long in_max, long out_min, long out_max);
+//int round(double number);
+void randomSeed(unsigned int seed);
+long random(long howsmall, long howbig);
+void cli(void);
+void sei(void);
+
+
+#endif // __UTIL_H__