This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Wire.h> | |
byte val = 0; | |
void setup() { | |
Wire.begin(8); // join i2c bus with address #8 | |
Wire.onRequest(requestEvent); // register event | |
} | |
void loop() { | |
delay(1000); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Blink | |
Turns on an LED on for one second, then off for one second, repeatedly. | |
This example code is in the public domain. | |
*/ | |
// Pin 13 has an LED connected on most Arduino boards. | |
// Pin 11 has the LED on Teensy 2.0 | |
// Pin 6 has the LED on Teensy++ 2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* system example : DIR */ | |
#include <stdio.h> /* printf */ | |
#include <stdlib.h> /* system, NULL, EXIT_FAILURE */ | |
#include <iostream> | |
#include <fstream> | |
#include <string> | |
#include <sstream> | |
#include <windows.h> | |
using namespace std; |