Skip to content

Instantly share code, notes, and snippets.

View biskandar's full-sized avatar
💭
Spring Boot + Kubernetes = DevOps

Benny biskandar

💭
Spring Boot + Kubernetes = DevOps
View GitHub Profile
@biskandar
biskandar / 2012100801.c
Created October 8, 2012 11:45
Simplified webserver module using Webduino library 2012100801
#include "SPI.h"
#include "Ethernet.h"
#include "WebServer.h"
#include "aJSON.h"
// prepare for the ethernet profile
static uint8_t mac[] = { 0x00 , 0x08, 0xDC, 0x00, 0x00, 0x09 } ;
static uint8_t ip[] = { 169, 254, 62, 169 } ;
void setup() {
@biskandar
biskandar / 2012010402.c
Created October 6, 2012 06:39
Using I2C as Communication Link between Arduinos 2012010402
#include <Wire.h>
void setup() {
Serial.begin( 9600 ) ;
while ( !Serial ) ;
// run as I2C Slave with id = 1
int slaveId = 1 ;
Wire.begin( slaveId ) ;
// setup callback function
Wire.onReceive( onWireReceive ) ;
@biskandar
biskandar / 2012010401.c
Created October 6, 2012 06:17
Using I2C as Communication Link between Arduinos 2012010401
#include <Wire.h>
// preparing for which slave device
// need to be connected
int slaveId = 0 ;
void setup() {
Serial.begin( 9600 ) ;
while ( !Serial ) ;
// Run as I2C Master