2D plot of an XBOX controller joystick using Python matplotlib and xboxdrv. Run on a Raspberry Pi 3 Model B
Python class to control xbox was taken from https://github.com/FRC4564/Xbox and slightly modified to not crash all the time
- Install xboxdrv https://github.com/xboxdrv/xboxdrv
sudo apt-get install xboxdrv
- Install python packages
sudo apt-get install python-matplotlib
-
Setup your env to run Python 2.7
-
Clone this repository
cd
git clone https://github.com/cookacounty/xbox-controller-2D-plot.git
cd xbox-controller-2D-plot
- Run the plot! (sudo is needed for xboxdrv)
sudo python plot_xbox.py
--or--
sudo python plot_ps4.py
--or--
sudo python plot_sensor3d.py
--or--
sudo python plot_dual.py
binarynum is a python class to deal with binary numbers
- Bit selection
- Fixed point representation
- Concatination
- Signed/Unsigned conversion The class was written to parse the pure interger data that an interface such as I2C returns
A class written to collect data from a 3D sensor