Skip to content

Instantly share code, notes, and snippets.

View mathieue's full-sized avatar

Mathieu Elie mathieue

View GitHub Profile
@chut
chut / xively mqtt arduino
Created October 16, 2013 16:52
An example of how to connect to the xively MQTT server using arduino. Based on the pubsub client by knolleary
/*
Xively MQTT example
-Subscribes to Xively feed
-publishes current value to serial monitor
Based on Basic MQTT Example by knolleary
By Calum Barnes, Xively (c) 2013
@markfickett
markfickett / fht_curses_graph
Last active June 20, 2017 16:43
ArduinoFHT Demo Graph (Python using curses)
"""Draw a live bar graph of frequency data (from Arduino FHT)."""
import collections
import curses
import math
import serial # http://pyserial.sourceforge.net/
import time
_SERIAL_DEVICE = '/dev/tty.usbmodemfa141'
_GRAPH_MAX_Y = 100