Commit 20f8d01b authored by Your Name's avatar Your Name
Browse files

add lslder06/07 4 channel mini version

parent 8af4edc4
#!/bin/bash
echo "running rc.lslder06"
run lslder_4chan
#!/bin/bash
echo "running rc.lslder07"
run lslder_4chan
......@@ -10,7 +10,7 @@ CXXFLAGS+=-Wall -std=c++11
CXX=g++
CC=g++
TARGETS=lslder_1chan lslder_8chan sendrand lslder_4chan_proto
TARGETS=lslder_1chan lslder_4chan lslder_8chan sendrand lslder_4chan_proto
all: $(TARGETS)
......@@ -22,6 +22,11 @@ lslder_8chan: lslder_8chan.o led.o
lslder_8chan.o: lslder_uni.cc
$(CXX) $(CXXFLAGS) -c $< -o $@
lslder_4chan: CXXFLAGS+=-DLSLDER_4CHAN
lslder_4chan: lslder_4chan.o led.o
lslder_4chan.o: lslder_uni.cc
$(CXX) $(CXXFLAGS) -c $< -o $@
lslder_1chan: CXXFLAGS+=-DLSLDER_1CHAN
lslder_1chan: lslder_1chan.o led.o
lslder_1chan.o: lslder_uni.cc
......
No preview for this file type
......@@ -42,6 +42,19 @@ const int nled = 0;
#endif
#ifdef LSLDER_4CHAN
// 4-chan version with 4 LEDs
const int ngpio = 4;
const int gpioinp[ngpio] = { 24, 23, 18, 15 };
const int default_debouncetime = 0;
const int ledgpio[] = { 5, 14, 3, 2 };
const int nled = 4;
#endif
#ifdef LSLDER_8CHAN
// 8-chan version with 8 LEDs
......
#!/bin/bash
#run this as root
cd /home/pi/firmware/lslder
export LD_LIBRARY_PATH=../labstreaminglayer/build/LSL/liblsl
./lslder_4chan
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment