/Modules/Sensors/ISL2902001A/SW/Arduino/i2c_light/i2c_light.ino
17,11 → 17,11
void setup()
{
Wire.begin(); // join i2c bus (address optional for master)
// I2C pins PC4 - SDA , PC5 - SCL
// I2C pins PC4 - , PC5 -
//
pinMode(3, OUTPUT); // LED pro blikani, aby bylo videt, ze to neco dela
Serial.begin(9600); // Zmerena intenzita osvetleni se bude vypisovat na seriovou linku
Serial.println("LABduino luxmeter demo - (c) MLAB.cz, kakl 2012");
Serial.println("LABduino luxmeter demo - (c) MLAB, kakl 2012");
}
 
int data = 0;
29,9 → 29,9
 
void led_blink()
{
digitalWrite(3, HIGH); // set the LED on
digitalWrite(3, HIGH); // set the LED off
delay(100);
digitalWrite(3, LOW); // set the LED off
digitalWrite(3, LOW); // set the LED on
delay(700);
}