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
module tube(height, radius, wall, center = false) { | |
difference() { | |
cylinder(h=height, r=radius, center=center); | |
translate([0,0,-1]) cylinder(h=height + 2, r=radius- wall, center=center); | |
} | |
} | |
for(k=[0: 20.5: 300]) { | |
P = k / 300.0; |
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 <dht11.h> | |
#include <MQ135.h> | |
// #include <Adafruit_NeoPixel.h> | |
// #include "FastLED.h" | |
#define DHT11_PIN 4 | |
dht11 DHT; | |
MQ135 MQ(A0); |
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 <EEPROM.h> | |
#include <Adafruit_DotStar.h> | |
#include <SPI.h> | |
#include "TimerThree.h" | |
// R0 = 4x12 leds | |
// R1 = 4x11 leds | |
// R2 = 4x10 leds | |
// R3 = 4x9 leds |
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
IDENTIFICATION DIVISION. | |
PROGRAM-ID. ROTOZOOM. | |
DATA DIVISION. | |
WORKING-STORAGE SECTION. | |
01 DUMMY PIC 9(1) BINARY VALUE 0. | |
01 FRAME PIC 9(10) VALUE 0. | |
01 WS-CNT PIC 9(3) VALUE 0. | |
01 WS-CNT2 PIC 9(3) VALUE 0. | |
01 TMP PIC 9(3) VALUE 0. |
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
// | |
// Minimal self container OpenGL Example | |
// | |
// Compile with: | |
// xcrun gcc -o test -framework Foundation -framework OpenGL -framework CoreGraphics -framework AppKit main.m | |
// | |
#import <Foundation/Foundation.h> | |
#import <CoreGraphics/CoreGraphics.h> | |
#import <OpenGL/OpenGL.h> |
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
// | |
// Minimal self container OpenGL Example | |
// | |
// Compile with: | |
// xcrun gcc -o test -framework Foundation -framework OpenGL -framework CoreGraphics -framework AppKit main.m | |
// | |
#import <Foundation/Foundation.h> | |
#import <CoreGraphics/CoreGraphics.h> | |
#import <OpenGL/OpenGL.h> |
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
var SerialPort = require("serialport"); | |
var moment = require('moment'); | |
// https://github.com/tompreston/4x5-Font/blob/master/4x5-font.js | |
var font4x5 = { | |
'': [0x0, 0x0, 0x0, 0x0, 0x0], | |
'!': [0x4, 0x4, 0x4, 0x0, 0x4], | |
'#': [0x6, 0xf, 0x6, 0xf, 0x6], | |
'\'': [0x0, 0xa, 0x0, 0x0, 0x0], | |
'%': [0x7, 0xe, 0x4, 0x7, 0xe], |
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
// PINS | |
// OE A | |
// - B | |
// - - | |
// - CLK | |
// - SCLK | |
// - - | |
// - R | |
// - - |
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
var SerialPort = require("serialport"); | |
// https://github.com/tompreston/4x5-Font/blob/master/4x5-font.js | |
var font4x5 = { | |
'': [0x0, 0x0, 0x0, 0x0, 0x0], | |
'!': [0x4, 0x4, 0x4, 0x0, 0x4], | |
'#': [0x6, 0xf, 0x6, 0xf, 0x6], | |
'\'': [0x0, 0xa, 0x0, 0x0, 0x0], | |
'%': [0x7, 0xe, 0x4, 0x7, 0xe], | |
'$': [0x7, 0xa, 0x6, 0x5, 0xe], |
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
const int leftButton = 4; | |
const int rightButton = 5; | |
const int upButton = 6; | |
const int downButton = 3; | |
const int enterButton = 7; | |
const int ledPin = 12; | |
class Debouncer { | |
private: | |
int time; |