added some libs and projects

This commit is contained in:
Johannes Findeisen 2015-08-25 23:22:27 +02:00
commit c175b7c85c
39 changed files with 2546 additions and 0 deletions

View file

@ -0,0 +1,22 @@
#include <Wire.h>
int lightPin = 0;
void setup()
{
Wire.begin(7); // join i2c bus with address #7
Wire.onRequest(requestEvent); // register event
Serial.begin(9600); //Begin serial communcation
}
void loop()
{
Serial.println(analogRead(lightPin));
delay(1000);
}
void requestEvent()
{
Wire.write(analogRead(lightPin)); // respond with message of 6 bytes
}