Skip to content

Instantly share code, notes, and snippets.

View tomasero's full-sized avatar
👅
Controlling stuff with my tongue

To+0_0 tomasero

👅
Controlling stuff with my tongue
View GitHub Profile
@tomasero
tomasero / ultrasound.ino
Last active August 29, 2015 14:22
Ultrasound publish
// This #include statement was automatically added by the Spark IDE.
#include "elapsedMillis/elapsedMillis.h"
#define APP_VERSION 1.1
long distance = 0;
long echo = 0;
const int trigPin = D0;
const int echoPin = D1;
const int led = D7;
#cart-panel.cart-panel-hidden
#cart-title Cart
= inline_svg "shop.svg", class: "cart-svg svg"
#cart-info
= label :user, :name, 'SID', class: "cart-label"
= text_field :user, :name, class: "cart-input"
= label :user, :comment, 'Comment', class: "cart-label"
.comment-arrow
= text_area :user, :comment, class: "cart-textarea", cols: "18", rows: "2"
= label :user, :items, 'Items', class: "cart-label"