This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void setup() { | |
String debug = ""; | |
// Begin the serial monitor | |
Serial.begin(115200); | |
/* | |
I use delays to ensure certain things | |
have had time to settle and for | |
debugging - some are probably extraneous | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void setup() { | |
// Start the serial monitor | |
/* | |
Note: make sure the serial monitor's | |
baud rate is set to 115,200 | |
*/ | |
Serial.begin(115200); | |
// Start communication with the Bluetooth module | |
Serial1.begin(115200); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
amixer -c 0 cset numid=3 | |
coproc stdbuf -oL bluetoothctl | |
sleep 7 | |
sudo -u pi pulseaudio --start | |
echo -e "pairable on\n" >& ${COPROC[1]} | |
echo -e "discoverable on\n" >& ${COPROC[1]} | |
echo -e "agent NoInputNoOutput\n" >& ${COPROC[1]} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
amixer -c 0 cset numid=3 1 | |
/home/pi/auto-bt.sh & |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <stdio.h> | |
#include <stdbool.h> | |
#include <errno.h> | |
#include <unistd.h> | |
#include <math.h> | |
#include <getopt.h> | |
#include <string.h> | |
#include <wchar.h> | |
#include <locale.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Copyright (C) 2002 Anthony Van Groningen | |
This program is free software; you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation; either version 2 of the License, or | |
(at your option) any later version. | |
This program is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of | |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <stdio.h> | |
#include <stdbool.h> | |
#include <errno.h> | |
#include <unistd.h> | |
#include <string.h> | |
#include <jack/jack.h> | |
#include <jack/transport.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
amixer -c 0 cset numid=3 | |
coproc stdbuf -oL bluetoothctl | |
sleep 5 | |
sudo -u pi pulseaudio --start |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
coproc stdbuf -oL bluetoothctl | |
sleep 5 | |
sudo -u pi /usr/local/bin/jackd -dalsa -r44100 -p1024 -n2 & | |
sleep 10 | |
sudo -u pi pulseaudio --start | |
echo "Started Jackd" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
amixer -c 0 cset numid=3 | |
coproc stdbuf -oL bluetoothctl | |
sleep 5 | |
sudo -u pi /usr/local/bin/jackd -dalsa -r44100 -p1024 -n2 & | |
sleep 10 | |
sudo -u pi pulseaudio --start |
OlderNewer