Skip to content

Instantly share code, notes, and snippets.

#include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
ofLogToFile("log.txt", true);
}
//--------------------------------------------------------------
void ofApp::update(){
const int buttonPin = 2; // the number of the pushbutton pin
// variables will change:
int buttonState = 0; // variable for reading the pushbutton status
void setup() {
// initialize the pushbutton pin as an input:
pinMode(buttonPin, INPUT);
// Setup serial
@faaip
faaip / gist:789eac32691540a29ce04b9d5774c16c
Created April 9, 2018 18:53
Finding raspberry pi ip on LAN
arp -na | grep -i b8:27:eb
@faaip
faaip / README.md
Created September 29, 2020 11:55 — forked from willprice/README.md
Install OpenCV 4.1.2 for Raspberry Pi 3 or 4 (Raspbian Buster)

Install OpenCV 4.1.2 on Raspbian Buster

$ chmod +x *.sh
$ ./download-opencv.sh
$ ./install-deps.sh
$ ./build-opencv.sh
$ cd ~/opencv/opencv-4.1.2/build
$ sudo make install