This file contains hidden or 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 <Wire.h> // Use Wire according to arcticle https://garretlabs.wordpress.com/2014/03/18/the-dark-side-of-porting-arduino-sketches-on-intel-galileo-part-one/ | |
int RESET_PIN = 8; | |
int DC_PIN = 9; | |
int CS_PIN = 7; | |
int MOSI_PIN = 2; | |
int MISO_PIN = 12; | |
int SCK_PIN = 3; | |
//TFT resolution 240*320 |
This file contains hidden or 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
from TwitterAPI import TwitterAPI | |
from TwitterAPI import TwitterRestPager | |
from natsort import versorted | |
import json, sys, glob, os | |
def main(args): | |
if len(args) < 2: | |
print "usage: python tweets.py #hashtag" | |
print "" |
This file contains hidden or 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
cmake_minimum_required(VERSION 2.8) | |
project( picam ) | |
SET(COMPILE_DEFINITIONS -Werror) | |
find_package( OpenCV REQUIRED ) | |
include_directories(/opt/vc/include) | |
include_directories(/opt/vc/include/interface/vcos) | |
include_directories(/opt/vc/include/interface/vcos/pthreads) | |
include_directories(/opt/vc/include/interface/vmcs_host/linux) | |
include_directories(/opt/vc/include/host_applications/linux/libs/bcm_host/include) | |
link_directories(/opt/vc/lib) |