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 "Arduino.h" | |
class Encoder { | |
public: | |
int pinA, pinB, prevA, prevB, index, value; | |
//delta, prev, v; | |
Encoder() { | |
} |
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 <LCD4Bit_mod.h> | |
LCD4Bit_mod lcd = LCD4Bit_mod(2); | |
int geld=0; | |
void setup() { | |
lcd.init(); | |
lcd.clear(); | |
lcd.printIn("Gooi geld in aub"); |
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
$fs=0.1; | |
h=30; | |
topH=5; | |
topR=25; | |
poleR=5; | |
screwR=1.5; | |
screwX=11.57; | |
translate([0,0,h/2-topH/2]) { | |
linear_extrude(height=topH, center=true) { |
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
//testApp.cpp | |
#include "ofMain.h" | |
class testApp : public ofBaseApp { | |
public: | |
ofShader shader; | |
ofImage earth,clouds; | |
ofEasyCam cam; | |
GLUquadricObj *quadric; //for gluSphere |
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 "ofMain.h" | |
#include "ofAppGlutWindow.h" | |
class ofApp : public ofBaseApp { | |
public: | |
ofMesh mesh; | |
ofEasyCam cam; | |
void setup() { |
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
class testApp : public ofBaseApp { | |
public: | |
ofMesh mesh; | |
ofEasyCam cam; | |
void setup() { | |
ofSetFrameRate(20); | |
ofBackground(0); | |
glEnable(GL_CULL_FACE); |
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
Beestje a; | |
Beestje b; | |
void setup() { | |
size(500,500); | |
smooth(); | |
a.oogKleur = 255; | |
a.x = 100; | |
a.y = 100; |
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 "testApp.h" | |
//-------------------------------------------------------------- | |
void testApp::setup(){ | |
imageWidth = 1024; | |
imageHeight = 512; | |
nightWidth = dayWidth = 400; | |
gradientWidth = 75; |
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 "ofMain.h" | |
#include "ofAppGlutWindow.h" | |
class testApp : public ofBaseApp { | |
public: | |
ofImage img; | |
ofPoint corners[4]; | |
int selectedCorner; |
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 "ofMain.h" | |
#include "ofAppGlutWindow.h" | |
#include "ofxOpenCv.h" | |
#include "ofxSimpleGuiToo.h" | |
#define NUM 2 | |
class testApp : public ofBaseApp { | |
public: | |
ofVideoGrabber cam[NUM]; |