Skip to content

Instantly share code, notes, and snippets.

@aleksmk
aleksmk / arduino_ds18b20.c
Last active October 6, 2015 17:47 — forked from glisha/arduino_ds18b20.c
Хаклаб температурни сензори (https://cosm.com/feeds/64655)
#include <OneWire.h>
#include <LiquidCrystal.h>
#include <avr/delay.h>
#define CHANGERATE 5 // in which limits will the temperature change since the last reading, in degrees
#define INPUTPIN 5
// For every sensor found it outputs to serial:
// SensorID,CurrentTemp,Readout time,Current time
// Info at: http://wiki.spodeli.org/Хаклаб/Температура
@aleksmk
aleksmk / pedometer.c
Created December 17, 2010 14:36 — forked from gdamjan/pedometer.c
... and the idea gave birth to a fruit
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/io.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <signal.h>