Skip to content

Instantly share code, notes, and snippets.


Simone Baracchi simonebaracchi

View GitHub Profile
# is a log file browser
# Usage: <logfile>
# input strings you want to filter out
# and then "open" when you want to see the full (filtered) results
# add multiple filters at once by separating them with pipes, e.g. filter1|filter2|etc
simonebaracchi / temperature_example.ino
Created Oct 5, 2015
Temperature beacon example with Arduino and BTLE library
View temperature_example.ino
* Emulates a nRF8001 temperature beacon;
* reads temperature from a DHT11 and sends it via BTLE.
* Compatible with Nordic Semiconductor apps such as
* nRF Master Control Panel or nRF Temp 2.0.
#include <BTLE.h>
#include <SPI.h>
View power_saving.ino
#include <avr/sleep.h>
#include <avr/power.h>
#include <avr/wdt.h>
// watchdog interrupt
ISR (WDT_vect)
wdt_disable(); // disable watchdog