This file contains 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 <SPI.h> | |
#include <Adafruit_PN532.h> | |
//Declare shield IO hardware | |
#define strikePlate 9 | |
#define ledPin 8 | |
// Using hardware serial so only Chip select pin needs to be defined. | |
#define PN532_SCK (2) | |
#define PN532_MOSI (3) |
This file contains 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
country=AU | |
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev | |
update_config=1 | |
network={ | |
ssid="YOUR_WIFI_SSID" | |
scan_ssid=1 | |
psk="YOUR_WIFI_PASSWORD" | |
key_mgmt=WPA-PSK | |
} |
This file contains 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
/bin/echo 17 > /sys/class/gpio/export | |
/bin/echo "out" > /sys/class/gpio/gpio17/direction |
This file contains 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
// On | |
/bin/echo "1" > /sys/class/gpio/gpio17/value | |
//Off | |
/bin/echo "0" > /sys/class/gpio/gpio17/value |
This file contains 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
#### Step 1 - Get your Pi ready #### | |
sudo raspi-config #Expand File system and enable SSH | |
sudo apt-get update | |
sudo apt-get upgrade | |
#### Step 2 - Install TVheadend #### | |
sudo apt-get install dirmngr | |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 379CE192D401AB61 |