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
#!/usr/bin/python3 | |
#Scraping wikipedia page according to your command line input | |
import sys | |
import requests | |
import bs4 | |
RED = '\033[31m' | |
END = '\033[0m' | |
ascii_art = RED \ | |
+ """ |
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 "TimerOne.h" | |
const int PIN_1_K = 10; | |
const int PIN_2_K = 12; | |
const int PIN_3_K = 11; | |
int digits[10][8] = { | |
// 0 1 2 3 4 5 6 7 | |
{ 1, 1, 0, 1, 0, 1, 1, 1 }, // 0 | |
{ 0, 0, 0, 1, 0, 1, 0, 0 }, // 1 |
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
import serial | |
# this port address is for the serial tx/rx pins on the GPIO header | |
SERIAL_PORT = '/dev/ttyAMA0' | |
# be sure to set this to the same rate used on the Arduino | |
SERIAL_RATE = 9600 | |
def main(): |
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 <nRF24L01.h> | |
#include <RF24.h> | |
#define DEVICE_ID 2 | |
#define CHANNEL 1 //MAX 127 | |
// SPI pin configuration figured out from here: | |
// http://d.av.id.au/blog/esp8266-hardware-spi-hspi-general-info-and-pinout/ | |
RF24 radio(2, 15); // Set up nRF24L01 radio on SPI bus plus pins 2 for CE and 15 for CSN |