Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
62fd0a9efThis file is pinned to the selected release. Download the original to open it in your design tool.
MagSpoofPI.c license: https://github.com/samyk/BPL/blob/master/README.md
MagSpoofPI - code integration by Salvador Mendoza(salvador_m_g@msn.com) @Netxing <br>
Thanks to Samy Kamkar(@samykamkar) and Sabas(@Sabasacustico)<br>
Details and configuration example: https://netxing.wordpress.com/2016/08/27/magspoofpi/
Main idea: be able to compile MagSpoof with variable tracks, and use it<br>
without arduino dependencies, and use it on the same raspberry pi gpio.<br>
-<br>
Special code for Raspberry Pi implementing avr-gcc without arduino.<br>
-<br>
Main modifications from the original MagSpoof in functions like digitalWrite(), <br>
setup() and loop().<br>
Original MagSpoof: http://samy.pl/magspoof/
Original instructions to program Attiny85 for Raspberry Pi: <br>
http://www.instructables.com/id/Programming-the-ATtiny85-from-Raspberry-Pi/
Dependencies:
Download and build avrdude
sudo apt-get install bison automake autoconf flex git gcc<br>
sudo apt-get install gcc-avr binutils-avr avr-libc<br>
git clone https://github.com/kcuzner/avrdude <br>
cd avrdude/avrdude<br>
./bootstrap && ./configure && sudo make install<br>
Setup SPI on the GPIO
sudo raspi-config<br>
and Enable SPI device in the Advanced Options (see picture)<br>
You can check this at the command line with lsmod, no need to reboot. (Maybe need to sudo modprobe spidev)
Download and build WiringPi for the gpio commands
cd ~ <br>
git clone git://git.drogon.net/wiringPi<br>
cd wiringPi<br>
./build<br>
cd ~ <br>
git clone https://github.com/salmg/MagSpoofPI.git<br>
cd MagSpoofPI<br>
make install<br>
To test it:<br>
sudo python rba.py