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
// ============================================================================== | |
// uDMX.c | |
// firmware for usb to dmx interface | |
// | |
// License: | |
// The project is built with AVR USB driver by Objective Development, which is | |
// published under an own licence based on the GNU General Public License (GPL). | |
// usb2dmx is also distributed under this enhanced licence. See Documentation. | |
// | |
// target-cpu: ATMega8 @ 12MHz |
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 <SD.h> | |
#include <OneWire.h> | |
#include <Wire.h> | |
#include <DallasTemperature.h> | |
#include <stdlib.h> | |
#include "RTClib.h" | |
#define ONE_WIRE_BUS 2 | |
#define TEMPERATURE_PRECISION 9 | |
#define NUMBER_OF_SENSORS 20 |
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 <SD.h> | |
#include <OneWire.h> | |
#include <Wire.h> | |
#include <DallasTemperature.h> | |
#include <stdlib.h> | |
#include "RTClib.h" | |
#define ONE_WIRE_BUS 2 | |
#define TEMPERATURE_PRECISION 9 | |
#define NUMBER_OF_SENSORS 20 |
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
/* | |
I2C sensor - arduino example | |
Connection | |
Chirp pin 1 - no connection | |
Chirp pin 2 - Arduino VCC | |
Chirp pin 3 - Arduino A5 | |
Chirp pin 4 - Arduino A4 | |
Chirp pin 5 - no connection | |
Chirp pin 6 - Arduino GND |
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
#define BPM 85//beats per minute | |
#define fadeinLength 20 //milliseconds | |
#define fadeoutLength fadeinLength * 3 | |
#define fadeinPause fadeinLength * 1000L / 255 |
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 "Tlc5940.h" | |
void setup() { | |
Tlc.init(); | |
} | |
uint32_t level = 0; | |
void loop() { |
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
/* | |
Fades a line down the channels, with max value and duration based on | |
the voltage of analog pin 0. | |
Try grounding analog 0: everything should turn off. | |
Try putting +5V into analog 0: everything should turn on. | |
See the BasicUse example for hardware setup. | |
Alex Leone <acleone ~AT~ gmail.com>, 2009-02-03 */ |
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/python | |
# cannot use python3 because smbus not working there | |
# Modified script from https://github.com/JasperWallace/chirp-graphite/blob/master/chirp.py | |
# by DanielTamm | |
import smbus, time, sys | |
class Chirp: | |
def __init__(self, bus=1, address=0x20): | |
self.bus_num = bus |
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
void setup() { | |
DDRD = 0xFF; | |
PORTD = 1; | |
pinMode(8, INPUT); | |
pinMode(9, INPUT); | |
} | |
byte digits[] = { | |
0b00000011,//0 | |
0b11110011,//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
#define STEP_X 49 | |
#define DIR_X 51 | |
#define ENA_X 53 | |
#define STEP_Y 43 | |
#define DIR_Y 45 | |
#define ENA_Y 47 | |
void setup() { | |
pinMode(STEP_X, OUTPUT); |
OlderNewer