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> | |
#include <VL53L0X.h> | |
int led = 3; | |
int buzzer = 4; | |
VL53L0X sensor; | |
void setup() | |
{ | |
Serial.begin(9600); |
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 <SharpIR.h> | |
int led = 2; | |
//int buzzer = 3; | |
#define IR A0 | |
#define model 430 | |
/* | |
2 to 15 cm GP2Y0A51SK0F use 1080 | |
4 to 30 cm GP2Y0A41SK0F / GP2Y0AF30 series use 430 | |
10 to 80 cm GP2Y0A21YK0F use 1080 | |
10 to 150 cm GP2Y0A60SZLF use 10150 |
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 <SharpIR.h> | |
int led = 2; | |
int buzzer = 3; | |
#define IR A0 | |
#define model 100500 | |
/* | |
2 to 15 cm GP2Y0A51SK0F use 1080 | |
4 to 30 cm GP2Y0A41SK0F / GP2Y0AF30 series use 430 | |
10 to 80 cm GP2Y0A21YK0F use 1080 | |
10 to 150 cm GP2Y0A60SZLF use 10150 |
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
#define pin A0 | |
int led = 2; | |
int buzzer = 3; | |
void setup(){ | |
Serial.begin (9600); | |
pinMode(pin, INPUT); | |
pinMode(led, OUTPUT); | |
pinMode(buzzer, OUTPUT); | |
} |
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
#define pin A0 | |
int led = 2; | |
int buzzer = 3; | |
void setup(){ | |
Serial.begin (9600); | |
pinMode(pin, INPUT); | |
pinMode(led, OUTPUT); | |
pinMode(buzzer, OUTPUT); | |
} |
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 <Arduino.h> | |
#include <U8x8lib.h> | |
#ifdef U8X8_HAVE_HW_SPI | |
#include <SPI.h> | |
#endif | |
#ifdef U8X8_HAVE_HW_I2C | |
#include <Wire.h> | |
#endif |
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 <Arduino.h> | |
#include <U8x8lib.h> | |
#ifdef U8X8_HAVE_HW_SPI | |
#include <SPI.h> | |
#endif | |
#ifdef U8X8_HAVE_HW_I2C | |
#include <Wire.h> | |
#endif |
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
int sensor = A0; | |
int led = 5; | |
int buzzer = 16; | |
int val = 0; | |
void setup() { | |
Serial.begin(9600); | |
pinMode(sensor, INPUT); | |
pinMode(led, OUTPUT); | |
pinMode(buzzer, OUTPUT); |
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
int sensor = A0; | |
int led = 3; | |
int buzzer = 2; | |
int val = 0; | |
void setup() { | |
Serial.begin(9600); | |
pinMode(sensor, INPUT); | |
pinMode(led, OUTPUT); | |
pinMode(buzzer, OUTPUT); |
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
int sensor = 34; | |
int led = 22; | |
//int buzzer = 23; | |
int val = 0; | |
void setup() { | |
Serial.begin(9600); | |
pinMode(sensor, INPUT); | |
pinMode(led, OUTPUT); | |
//pinMode(buzzer, OUTPUT); |