Skip to content

Instantly share code, notes, and snippets.

#define MAXTIMINGS 85
#define cli noInterrupts
#define sei interrupts
#define DHT11 11
#define DHT22 22
#define DHT21 21
#define AM2301 21

Keybase proof

I hereby claim:

  • I am machadolab on github.
  • I am machadolab (https://keybase.io/machadolab) on keybase.
  • I have a public key ASAZhs4WBH85Yj_61VtQrAr8whFhh7qqrl_MY0ufcCSU4Ao

To claim this, I am signing this object:

@masha256
masha256 / application.cpp
Created September 12, 2014 00:25
spitftbitmap.ino ported to spark
#include "application.h"
#include <SPI.h>
#include "Adafruit_GFX.h"
#include "Adafruit_HX8357.h"
#include "sd-card-library.h"
// These are 'flexible' lines that can be changed
#define TFT_CS A2
@masha256
masha256 / README.md
Last active August 3, 2017 08:53
Google Column Chart for Dashing

Description

A Dashing widget to show a Google Visualizations Column Chart on a dashboard.

Installation

Copy the google_column.coffee, google_column.html and google_column.scss file to into /widgets/google_column directory.

Add the following to the dashboard layout file:

@masha256
masha256 / README.md
Last active January 3, 2021 07:54
Google Gauge for Dashing

Description

A Dashing widget to show a Google Visualizations Gauge on a dashboard.

Installation

Copy the google_gauge.coffee, google_gauge.html and google_gauge.scss file to into /widgets/google_gauge directory.

Add the following to the dashboard layout file:

@masha256
masha256 / README.md
Last active February 16, 2017 11:49
Google Pie Chart for Dashing

Description

A Dashing widget to show a Google Visualizations Pie Chart on a dashboard.

Installation

Copy the google_pie.coffee, google_pie.html and google_pie.scss file to into /widgets/google_pie directory.

Add the following to the dashboard layout file:

@masha256
masha256 / README.md
Last active October 5, 2017 13:57
Hipchat presence widget for Dashing

Description

A Dashing widget to show Hipchat user presence on a dashboard.

Dependencies

Add the following to your dashing Gemfile

gem 'hipchat'
@masha256
masha256 / check_s3_age.rb
Last active February 5, 2016 05:35
nagios check script to check for max age of files in an s3 bucket. written in ruby, requires aws-sdk v2 gem.
require 'aws-sdk'
CONFIG = {
# nil to load from env
:aws_access_key => nil,
:aws_secret_access_key => nil,
:aws_region => nil,
# in seconds
@masha256
masha256 / README.md
Last active December 23, 2018 16:50

Description

A Dashing widget to show Slack user presence on a dashboard.

Dependencies

Add the following to your dashing Gemfile

gem 'slack-api'
@masha256
masha256 / noiseometer_test.ino
Created June 24, 2016 01:07
Noiseometer Adafruit.io test code
// This example uses an Arduino/Genuino Zero together with
// a WiFi101 Shield or a MKR1000 to connect to shiftr.io.
//
// IMPORTANT: This example uses the new WiFi101 library.
//
// You can check on your device after a successful
// connection here: https://shiftr.io/try.
//
// by Gilberto Conti
// https://github.com/256dpi/arduino-mqtt