Skip to content

Instantly share code, notes, and snippets.

package main
import (
"github.com/ant0ine/go-json-rest/rest"
"log"
"net/http"
)
type Message struct {
Body string
@systmkor
systmkor / i2c slave
Created July 15, 2014 23:04
i2c between two MSP403s
//i2c Slave Code(LAUNCHPAD)
#include <Wire.h>
void setup()
{
Wire.begin(8); //join i2c bus with addres 8
Wire.onReceive(receiveEvent);
pinMode(6,OUTPUT);
pinMode(RED_LED, OUTPUT);
digitalWrite(RED_LED, LOW);
DEBUG Loaded Plugin: RFC 6120: Stream Feature: STARTTLS
DEBUG Loaded Plugin: RFC 6120: Stream Feature: Resource Binding
DEBUG Loaded Plugin: RFC 3920: Stream Feature: Start Session
DEBUG Loaded Plugin: RFC 6121: Stream Feature: Roster Versioning
DEBUG Loaded Plugin: RFC 6121: Stream Feature: Subscription Pre-Approval
DEBUG Loaded Plugin: RFC 6120: Stream Feature: SASL
DEBUG Loaded Plugin: XEP-0030: Service Discovery
DEBUG Loaded Plugin: XEP-0004: Data Forms
DEBUG Loaded Plugin: XEP-0131: Stanza Headers and Internet Metadata
DEBUG Loaded Plugin: XEP-0082: XMPP Date and Time Profiles
DEBUG Loaded Plugin: RFC 6120: Stream Feature: STARTTLS
DEBUG Loaded Plugin: RFC 6120: Stream Feature: Resource Binding
DEBUG Loaded Plugin: RFC 3920: Stream Feature: Start Session
DEBUG Loaded Plugin: RFC 6121: Stream Feature: Roster Versioning
DEBUG Loaded Plugin: RFC 6121: Stream Feature: Subscription Pre-Approval
DEBUG Loaded Plugin: RFC 6120: Stream Feature: SASL
DEBUG Loaded Plugin: XEP-0030: Service Discovery
DEBUG Loaded Plugin: XEP-0004: Data Forms
DEBUG Loaded Plugin: XEP-0082: XMPP Date and Time Profiles
DEBUG Loaded Plugin: XEP-0131: Stanza Headers and Internet Metadata