Browse Source

Implement 200ms Vibration Length

master
Igor Beloschapkin 3 years ago
parent
commit
da0b36bf27
1 changed files with 36 additions and 10 deletions
  1. 36
    10
      tactile_eeg_local/tactile_eeg_local.ino

+ 36
- 10
tactile_eeg_local/tactile_eeg_local.ino View File

@@ -5,9 +5,9 @@
#include <stdio.h>
#include <ctype.h>

/* Firmware v1.1 04.04.2019
* Christian Schuster
* cchschuster@gmail.com
/* Firmware v1.4 17.03.2021
* Igor Beloschapkin
* beloschapkinig61248@th-nuernberg.de
*/

#define SSID "featherNetwork" // network SSID
@@ -167,12 +167,38 @@ void vibrate(const char signr)
{
switch(signr)
{
case '6': digitalWrite(PIN_TAC6, HIGH); break;
case '5': digitalWrite(PIN_TAC5, HIGH); break;
case '4': digitalWrite(PIN_TAC4, HIGH); break;
case '3': digitalWrite(PIN_TAC3, HIGH); break;
case '2': digitalWrite(PIN_TAC2, HIGH); break;
case '1': digitalWrite(PIN_TAC1, HIGH); break;
case '0': allLow(); break;
case '6':
digitalWrite(PIN_TAC6, HIGH);
delay(200);
digitalWrite(PIN_TAC6, LOW);
break;
case '5':
digitalWrite(PIN_TAC5, HIGH);
delay(200);
digitalWrite(PIN_TAC5, LOW);
break;
case '4':
digitalWrite(PIN_TAC4, HIGH);
delay(200);
digitalWrite(PIN_TAC4, LOW);
break;
case '3':
digitalWrite(PIN_TAC3, HIGH);
delay(200);
digitalWrite(PIN_TAC3, LOW);
break;
case '2':
digitalWrite(PIN_TAC2, HIGH);
delay(200);
digitalWrite(PIN_TAC2, LOW);
break;
case '1':
digitalWrite(PIN_TAC1, HIGH);
delay(200);
digitalWrite(PIN_TAC1, LOW);
break;
case '0':
allLow();
break;
}
}

Loading…
Cancel
Save