Skip to content

Instantly share code, notes, and snippets.

#include <SPI.h>
#include "Battery.h"
#include <Radio.h>
#include "PinChangeInterrupt.h"
//#include <TinyDebugSerial.h>
//TinyDebugSerial debug = TinyDebugSerial();
#define BUTTON 10
#define PHOTOCELL_PWR 9
//****************************************************************
/*
Watchdog Sleep Example
Demonstrate the Watchdog and Sleep Functions
Photoresistor on analog0 Piezo Speaker on pin 10
KHM 2008 / Lab3/ Martin Nawrath nawrath@khm.de
Kunsthochschule fuer Medien Koeln
Academy of Media Arts Cologne
@netmaniac
netmaniac / error_message.txt
Created February 25, 2016 07:55
Problem with error 'void value not ignored as it ought to be' in Arduino IDE 1.6.7
/home/viciu/akd-sketchbook/not_ignored_void/tab2.ino: In function 'void setup()':
tab2:3: error: void value not ignored as it ought to be
Serial.println("2+2=4");
^
exit status 1
void value not ignored as it ought to be
#define NOT_CORRECTED 10
/*
Change brightness of LED linearly to Human eye
32 step brightness using 8 bit PWM of Arduino
brightness step 24 should be twice bright than step 12 to your eye.
*/
#include <avr/pgmspace.h>
#define CIELPWM(a) (pgm_read_word_near(CIEL8 + a)) // CIE Lightness loopup table function
//https://github.com/nettigo/RadioNRF24
#include <SPI.h>
#include <RadioNRF24.h>
#define BUFF_SIZE 40
struct Payload {
byte id;
unsigned long data;
@netmaniac
netmaniac / env_station.ino
Created April 16, 2014 20:33
Sending POST requests to ThingSpeak channel from Arduino YUN
#include <Bridge.h>
#include <Console.h>
#include <Process.h>
#include <DHT.h>
DHT dht;
#define Vref 4.95
#define ARRAY_SIZE 4