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
/* | |
Demonstration sketch for Hobbybotics MAX6675 Thermocouple breakout board. | |
Reads temperature from MAX6675 in celsius and fahrenheit. Prints results to I2C LCD. | |
*/ | |
#include <MAX6675.h> | |
#include <LCD.h> | |
#include <Wire.h> |
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
/* | |
Demonstration sketch for DS18B20 temperature sensors using the DallasTemperature library. | |
Reads temperature (Celsius) and temperature (Fahrenheit). Displays results to I2C LCD. | |
*/ | |
#include <LCD.h> // I2C LCD | |
#include <Wire.h> // I2C | |
#include <OneWire.h> // One-wire devices | |
#include <DallasTemperature.h> // DS18B20 |
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
int speakerPin = 5; | |
int length = 26; | |
char notes[] = "eeeeeeegcde fffffeeeeddedg"; | |
int beats[] = { 1, 1, 2, 1, 1, 2, 1, 1, 1, 1, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2}; | |
int tempo = 300; | |
void playTone(int tone, int duration) { | |
for (long i = 0; i < duration * 1000L; i += tone * 2) { | |
digitalWrite(speakerPin, HIGH); | |
delayMicroseconds(tone); |
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
/* | |
Blink | |
Turns on an LED on for one second, then off for one second, repeatedly. | |
This example code is in the public domain. | |
*/ | |
void setup() { | |
// initialize the digital pin as an output. | |
// Pin 13 has an LED connected on most Arduino boards: |
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
;Enable unmasked peripheral interrupts | |
INTCON = %11000000 | |
;Declear interrupt handler | |
ON INTERRUPT goto Serial_Interrupt | |
;Enable interrupt on USART (Serial Receive) | |
PIE1.5 = 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
;-----[ Includes ]--------------------------------------------------------- | |
INCLUDE "16F628A.pbp" | |
;-----[ Defines ]---------------------------------------------------------- | |
;Define oscillator speed in Mhz | |
DEFINe OSC 20 | |
;Define which port is connected to the LCD Data pins D4 - D7 | |
DEFINE LCD_DREG PORTB |
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
/* | |
Demonstration sketch for the Hobbybotics Wireless Thermostat/Temperature Node. | |
Sends sensor data and relay status over the serial port. | |
*/ | |
#include <MCP23008.h> // MCP23008 I/O Expander (I2C) | |
#include <LCD.h> // I2C LCD | |
#include <Wire.h> // I2C functions | |
#include <OneWire.h> // One-wire devices |
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
/* | |
Demonstration sketch for the Hobbybotics Wireless Thermostat/Temperature Node. | |
Creates a LCD menu system and allows ON/OFF control for the relays on the System | |
Output Controller board. | |
Sections of code that is not needed for this demonstration is commented out | |
*/ | |
#include <MCP23008.h> // MCP23008 I/O Expander (I2C) |
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
/* | |
Demonstration sketch for Hobbybotics Wireless Thermostat/Temperature Node V2.0 using DS3234 RTC. | |
Reads Date and Time. Displays results to LCD | |
*/ | |
#include <SPI.h> | |
#include <Wire.h> | |
#include <RTClib.h> | |
#include <DS3234.h> |
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
/* | |
Demonstration sketch for TEMT6000 light sensor. | |
Reads light level (lux) and prints results to I2C LCD. | |
*/ | |
#include <TEMT6000.h> | |
#include <LCD.h> | |
#include <Wire.h> |
NewerOlder