Skip to content

Instantly share code, notes, and snippets.

View gist:d8b4a87a55ad0d60493255a71f9d613e
$0=10 (step pulse, usec)
$1=255 (step idle delay, msec)
$2=0 (step port invert mask:00000000)
$3=3 (dir port invert mask:00000011)
$4=0 (step enable invert, bool)
$5=1 (limit pins invert, bool)
$6=0 (probe pin invert, bool)
$10=3 (status report mask:00000011)
$11=0.020 (junction deviation, mm)
@machadolab
machadolab / example.ino
Created Nov 14, 2017
makerhq ledboard example
View example.ino
#include <Arduino.h>
#include <Adafruit_NeoMatrix.h>
#define BOARD_WIDTH 10
#define BOARD_HEIGHT 20
#define ROWS_PER_GROUP 4
#define NEO_PIN 7
@machadolab
machadolab / auto_mode.ino
Last active Aug 5, 2016
particle photon stepper tests
View auto_mode.ino
// This #include statement was automatically added by the Particle IDE.
#include "AccelStepperSpark/AccelStepperSpark.h"
#define STEP_FACTOR 8
bool forward = true;
// Define a stepper and the pins it will use
AccelStepper stepper(AccelStepper::DRIVER, A1, A2);
@machadolab
machadolab / noiseometer_test.ino
Created Jun 24, 2016
Noiseometer Adafruit.io test code
View noiseometer_test.ino
// 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
View README.md

Description

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

Dependencies

Add the following to your dashing Gemfile

gem 'slack-api'
@machadolab
machadolab / check_s3_age.rb
Last active Feb 5, 2016
nagios check script to check for max age of files in an s3 bucket. written in ruby, requires aws-sdk v2 gem.
View check_s3_age.rb
require 'aws-sdk'
CONFIG = {
# nil to load from env
:aws_access_key => nil,
:aws_secret_access_key => nil,
:aws_region => nil,
# in seconds
@machadolab
machadolab / README.md
Last active Oct 5, 2017
Hipchat presence widget for Dashing
View README.md

Description

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

Dependencies

Add the following to your dashing Gemfile

gem 'hipchat'
@machadolab
machadolab / README.md
Last active Feb 16, 2017
Google Pie Chart for Dashing
View README.md

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:

@machadolab
machadolab / README.md
Last active Sep 8, 2019
Google Gauge for Dashing
View README.md

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:

@machadolab
machadolab / README.md
Last active Aug 3, 2017
Google Column Chart for Dashing
View README.md

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:

You can’t perform that action at this time.