diff options
author | dakkar <dakkar@thenautilus.net> | 2016-08-05 10:53:13 +0100 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2016-08-05 10:53:13 +0100 |
commit | 0f9b4b6c757c11e954cdbd1513fe51643efc0dfe (patch) | |
tree | 833519c5b7904a9a08f042654f6fdc181a139f56 | |
parent | nicer queue implementation (diff) | |
download | keepon-eeg-master.tar.gz keepon-eeg-master.tar.bz2 keepon-eeg-master.zip |
we get a sample every second, the keepon can deal with that many
commands, just send them all
-rw-r--r-- | eeg.ino | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -190,7 +190,6 @@ void setup() { const int hist_width=3; const int hist_pad=1; -int samples_delay; byte attention, meditation, quality; int hist_height[8]; @@ -218,10 +217,9 @@ void loop() { hist_height[x] = power[x] * 30 / max_value; } - if (quality < 10 && ++samples_delay > 5) { + if (quality < 10) { keepon.pan(attention); keepon.tilt(meditation); - samples_delay=0; uView.setCursor(5,0);uView.print("sent"); } |