forked from bmj-autonomous/muleAI
-
Notifications
You must be signed in to change notification settings - Fork 0
Bluetooth Pairing
MarcusJones edited this page Jul 15, 2018
·
1 revision
git clone https://github.com/luetzel/bluez
cd bluez/
sudo apt-get install glib2.0-dev libdbus-1-dev libusb-dev libudev-dev libical-dev libreadline-dev
./configure --prefix=/usr --mandir=/usr/share/man --sysconfdir=/etc --localstatedir=/var --enable-sixaxis
sudo make install
sudo systemctl daemon-reload
sudo systemctl restart bluetooth
sudo systemctl enable bluetooth
cd ..
wget http://www.pabr.org/sixlinux/sixpair.c
gcc -o sixpair sixpair.c -lusb
# Reboot pi
sudo halt& exit
# Plug in the controller with USB cable
sudo ./sixpair
sudo hciconfig hci0 up piscan
service bluetooth status
#Not found,
#add this to zshrc: export PATH=$HOME/bin:/usr/local/bin:/sbin:/usr/sbin:$PATH
sudo reboot
ls /dev/input/