Skip to content

Instantly share code, notes, and snippets.

Avatar

Simone Baracchi simonebaracchi

  • Milan, Italy
View GitHub Profile
View logwalk.sh
#!/bin/bash
# logwalk.sh is a log file browser
# Usage: logwalk.sh <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
GREP=
FILTER=
@simonebaracchi
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
}
You can’t perform that action at this time.