Skip to content

Instantly share code, notes, and snippets.

View nog3's full-sized avatar

Brendan Halliday nog3

View GitHub Profile
@nog3
nog3 / Pins_Arduino.h
Last active January 25, 2023 12:03
Oak pins for ESP8266 Arduino Core
/*
pins_arduino.h - Pin definition functions for Arduino
Part of Arduino - http://www.arduino.cc/
Copyright (c) 2007 David A. Mellis
Modified for ESP8266 platform by Ivan Grokhotkov, 2014-2015.
Modified for Oak by Digistump, 2016.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2);
void setup() {
lcd.init();
lcd.backlight();
}
E.on('init', function() {
var esp = require("ESP8266");
esp.logDebug(false);
var p = new Pin(5);
pinMode(p, 'output');
esp.neopixelWrite(p, [0, 255, 255, 0, 0, 255, 0,255,0,255,0,0,128,128,0,255,255,0]);
});
@nog3
nog3 / gist:267e084c9107cf6bec18
Created November 17, 2014 09:13
Vendo basic ooutline

Vendo is a parts vending machine built from the husk of a Wurlitzer vending machine from the 80's.

Unfortunately when work commenced on it originally the coin mechanism had died. As such, it is now powered by:

  • Arduino (Mega, for controlling the hardware.)
  • Rasberry Pi (B+, running the web interface, touch screen and an RFID reader.

BOM

Codebase

Vendo's core software (npc-vend) runs as a web service on the Raspberry pi, providing a web interface. On boot the raspberry pi launches npc-vend and Chromium pointing at the npc-vend web interface which also handles the RFID reader.

Keybase proof

I hereby claim:

  • I am nog3 on github.
  • I am nogthree (https://keybase.io/nogthree) on keybase.
  • I have a public key whose fingerprint is 57E5 C408 5DDC 1290 85A7 B4F5 9BB1 E7B2 8CD9 E51D

To claim this, I am signing this object:

@nog3
nog3 / gist:7309722
Created November 4, 2013 21:47
configuration.h
#ifndef CONFIGURATION_H
#define CONFIGURATION_H
// This configuration file contains the basic settings.
// Advanced settings can be found in Configuration_adv.h
// BASIC SETTINGS: select your board type, temperature sensor type, axis scaling, and endstop configuration
// User-specified version info of this build to display in [Pronterface, etc] terminal window during
// startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
// build by the user have been successfully uploaded into firmware.
@nog3
nog3 / gist:5330318
Created April 7, 2013 12:33
Errors installing jekyll to ruby
C:/Ruby200-x64/bin/ruby.exe extconf.rb
creating Makefile
make
generating stemmer-x64-mingw32.def
compiling porter.c
porter.c: In function 'step1ab':
porter.c:233:4: warning: passing argument 2 of 'ends' discards 'const' qualifier from pointer target type [enabled by default]
porter.c:182:12: note: expected 'char *' but argument is of type 'const char *'
porter.c:234:7: warning: passing argument 2 of 'ends' discards 'const' qualifier from pointer target type [enabled by default]