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> | |
void writeI2CRegister8bit(int addr, int reg, int value) { | |
Wire.beginTransmission(addr); | |
Wire.write(reg); | |
Wire.write(value); | |
Wire.endTransmission(); | |
} | |
void writeI2CRegister8bit(int addr, int value) { |
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 <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 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 <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 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
// ============================================================================== | |
// 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 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
void setup() { | |
DDRD = 0xFF; | |
PORTD = 1; | |
pinMode(8, INPUT); | |
pinMode(9, INPUT); | |
} | |
byte digits[] = { | |
0b00000011,//0 | |
0b11110011,//1 |
NewerOlder