mbed to brain machine firmware. See http://klautesblog.blogspot.com for further information.

Revision:
1:90922bda2b17
Parent:
0:cf8c942ef95b
--- a/main.h	Sat Apr 09 12:35:35 2011 +0000
+++ b/main.h	Wed Apr 13 15:44:28 2011 +0000
@@ -10,25 +10,37 @@
  #include "mbed.h"
 
 /*************************************************************************************************/
+// Defining 4 of the 5 (atm) figured out brain wave frequencies as
+// the period duration of the LED  PWM signals.
+// The ***_HALF definitions equals to the PWM pulsewidth, which is
+// the half of the brainwave frequency.
 
+// Beta wave frequency (13-30Hz)
 #define HZ_14_4      0.06940000
 #define HZ_14_4_HALF 0.03470000
 
+// Alpha wave frequency (8-13Hz)
 #define HZ_11_1      0.09009009
 #define HZ_11_1_HALF 0.04504504
 
+// Theta wave frequency (4-8Hz)
 #define HZ_6         0.16666666
 #define HZ_6_HALF    0.08333333
 
+// Delta waves frequency (0.5-4Hz)
 #define HZ_2_2       0.45454545
 #define HZ_2_2_HALF  0.22727272
 
+// Brain frequencies with a offset of 400Hz
+// for audio output.
 #define HZ_414_4     0.00241312
 #define HZ_411_1     0.00243249
 #define HZ_406       0.00246305
 #define HZ_402_2     0.00248632
+// Base Frequency
 #define HZ_400       0.00250000
 
+// Brainwave types
 #define ALFA  0
 #define BETA  1
 #define DELTA 2