Error while including library from GitHub to IDE

I have bought an eeg kit. This kit directs us to use a github repository for processing all the data. I tried using some examples but I didnt have the required library so I downloaded the zip file from GitHub. After extracting it and moving it to the libraries folder I tried testing, it still didnt work. I tried manually adding the file but I could not even view it through the arduino IDE. Any suggestions would be welcome.
The GitHub Repository: GitHub - Neuphony/EXG-Synapse
Libraries are available in src folder.


Files clearly available when viewed through File explorer

Files not seen when viewed through arduino IDE

If any other info is needed please do tell me.

when you download the ZIP from Github and unzip it, you get something called EXG-Synapse-main

remove -main and you have a directory called EXG-Synapse

move that directory into the shared library folder on your computer (on my Mac it's in ~/Documents/Arduino/libraries)

then open the IDE and try to compile this


#include <synapse.h>

const int sensorPin = A0; // Analog input pin
synapse exg_synapse;

void setup(){
  Serial.begin(115200);
}

void loop(){ 
  float sensorValue = analogRead(sensorPin);
  float filters_out = exg_synapse.apply_ECG_filters(sensorValue);
  Serial.println(filters_out);
  delay(1000);  
}

does it compile?

1 Like

Thanks for the suggestion, but it does not compile.

You mean I just have to rename the folder right?

Hi @arduinojanuary. Move the files synapse.h and synapse_ble.h from the src folder up a level to the EXG-Synapse-main folder (or the EXG-Synapse folder if you renamed it).

Note that the library also has an undocumented dependency on the "CircularBuffer" library. You can install that library via the Arduino IDE Library Manager.

After doing that, try compiling the sketch again. Hopefully this time it will be successful.

1 Like

Thanks so much for the idea, I did as you suggested and I also zipped the folder.
I then went to sketch add library from .zip. It finally worked!!!
Thanks so much!!!

You are welcome. I'm glad it is working now.

Regards, Per

1 Like

A post was split to a new topic: SRXL2 library not recognized after manual install

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.