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
#------------------------------------------------------------------------------ | |
# time-tag utility | |
# | |
# This below goes into your ~/.bashrc | |
# | |
# simple utility that appends to a log, to be able to check for how | |
# long time an activity lasted | |
# | |
# usage | |
# ttag PROJECT ACTIVITY |
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
#include "thsq.h" | |
#include "ti-lib.h" | |
#include "gpio-interrupt.h" | |
#include "lib/sensors.h" | |
#include "batmon-sensor.h" | |
#include "dev/leds-arch.h" | |
#include "dev/cc26xx-uart.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
#include "thsq.h" | |
#include "ti-lib.h" | |
#include "gpio-interrupt.h" | |
#include "lib/sensors.h" | |
#include "batmon-sensor.h" | |
#include "dev/leds-arch.h" | |
#include "dev/cc26xx-uart.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
#include "thsq.h" | |
#include "ti-lib.h" | |
#include "gpio-interrupt.h" | |
#include "lib/sensors.h" | |
#include "batmon-sensor.h" | |
#include "dev/leds-arch.h" | |
#include "dev/cc26xx-uart.h" | |
/*---------------------------------------------------------------------------*/ | |
void | |
init_leds(void) |
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
#include "thsq.h" | |
#include "ti-lib.h" | |
/*---------------------------------------------------------------------------*/ | |
/* | |
* Thingsquare lighting switch with slider. | |
* | |
* This client uses a linear potentiometer to set the dim level of the lights | |
* in the network. To save power, we only power the potentiometer when we will | |
* sample it, and we only send light control if it has moved enough. | |
* |