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
#!/usr/bin/python | |
import urllib | |
import requests | |
import re | |
import sqlite3 | |
import os | |
import argparse | |
import gettext | |
import logging | |
import logging.handlers |
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
/* | |
* Arduino library for the MMA8452Q three-axis accelerometer. | |
* | |
* The MMA8452Q is a tiny and low-power three-axis accelerometer. This | |
* library implements a simple interface to access most of the chip | |
* functionality from an Arduino. | |
* | |
* FEATURES: | |
* + Normal and fast raw axes values reading | |
* + Scale configuration (allowed 2g, 4g and 8g scales) |
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
//Define the LED Pin | |
#define PIN_OUT 9 | |
//Define unit length in ms | |
#define UNIT_LENGTH 250 | |
//Build a struct with the morse code mapping | |
static const struct {const char letter, *code;} MorseMap[] = | |
{ | |
{ 'A', ".-" }, | |
{ 'B', "-..." }, |