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

#include <stdio.h> #include <stdio.h>
#include <ctype.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 #define SSID "featherNetwork" // network SSID
{ {
switch(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