Skip to content

Instantly share code, notes, and snippets.

View pkourany's full-sized avatar

Paul Kourany pkourany

  • ITWorx Services
  • Ottawa, Canada
View GitHub Profile
@pkourany
pkourany / LSM303.cpp
Last active August 29, 2015 14:00
Updated LSM303 code
#include "application.h"
#include "LSM303.h"
#define FEED_ID "xxxxxxxxxxxx" //note: fake id here..
#define XIVELY_API_KEY "Cxxxxxxxxxxxxxxxxxxxxxxx" //note: fake key here
TCPClient client;
LSM303 compass;
@pkourany
pkourany / FSM
Created June 11, 2014 15:13
FSM example
/************************************************/
/* Manage WiFi connection (start/stop) */
/* non-blocking, called in main loop */
/* */
/* void manageWiFi(void) */
/************************************************/
void manageWiFi(void)
{
switch(wifiState)
{
@pkourany
pkourany / FRAM.cpp
Created July 20, 2014 05:05
Fujitsu FRAM alpha library - for single chip only (for now)
/*
Fujitsu FRAM alpha library
*/
#include "FRAM.h"
FRAM::FRAM(uint8_t chipSelect)
{
_cs = chipSelect;
pinMode(_cs, OUTPUT);
@pkourany
pkourany / Gateway.ino
Created July 31, 2014 02:38
RFM69 lib
// Sample RFM69 receiver/gateway sketch, with ACK and optional encryption
// Passes through any wireless received messages to the serial port & responds to ACKs
// It also looks for an onboard FLASH chip, if present
// Library and code by Felix Rusu - felix@lowpowerlab.com
// Get the RFM69 and SPIFlash library at: https://github.com/LowPowerLab/
#if defined (SPARK)
#include "RFM69.h"
#else
#include <RFM69.h>
/* *********************************************************************************** */
/* Digole Serial Display Library - Version 006 */
/* Copyright 2014 Timothy Brown / Paul Kourany / Digole */
/* *********************************************************************************** */
/* Setup the class for your display *before* void setup(): */
/* */
/* DigoleSerialDisp digole(arguments); */
/* */
/* Arguments: */
/* */
@pkourany
pkourany / Hackscribble_Ferro.cpp
Created August 15, 2014 13:49
Hackscribble FRAM lib
/*
Hackscribble_Ferro Library
==========================
Connects Fujitsu Ferroelectric RAM (MB85RS range) to your
Arduino to add up to 32KB of fast, non-volatile storage.
For information on how to install and use the library,
read "Hackscribble_Ferro user guide.md".
@pkourany
pkourany / K30_basic.ino
Created December 9, 2014 13:10
KSeries -Library for interfacing with a K-series serial sensor adapted for Spark
/*
Basic Arduino example for K-Series sensor
Created by Jason Berger
Co2meter.com
*/
#include "kSeries.h"
kSeries kSensor(0,0);
@pkourany
pkourany / keybd.cpp
Created March 6, 2016 13:44
Digole Touch Keyboard Demo
/*********************
* http://www.digole.com/forum communicate with us and other user
* http://www.digole.com buyer Digole module
* Digole Serial display module with touch screen demo
* This demo will show you how to write data (u8g fonts, command set to onboard
* flush memory, then use it. Also show you Checkbox and Radio buttons
* The onboard flash memory is 2M bytes
* NOTE: if you using UART mode, you need to disconnect the RX from Arduino
* When you uploading your sketch
**********************/