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
/* | |
Código para o Sensor Sharp GP2Y0A41SK0F(20cm a 150cm) | |
*/ | |
int Valor_do_sensor = 0; //Valor lido pelo sensor | |
int Valor_em_cm = 0; //Valor lido pelo sensor convertido em cm | |
int Pino_do_sensor = A0; //Pino Analogico* no qual você conectou o sensor | |
void setup() | |
{ |
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
/* | |
Código para o Sensor Sharp GP2Y0A21YK(10cm a 80cm) | |
*/ | |
int Valor_do_sensor = 0; //Valor lido pelo sensor | |
int Valor_em_cm = 0; //Valor lido pelo sensor convertido em cm | |
int Pino_do_sensor = A0; //Pino Analogico* no qual você conectou o sensor | |
void setup() | |
{ |
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
/* | |
Código para o Sensor Sharp GP2Y0A41SK0F(4cm a 30cm) | |
*/ | |
int Valor_do_sensor = 0; //Valor lido pelo sensor | |
int Valor_em_cm = 0; //Valor lido pelo sensor convertido em cm | |
int Pino_do_sensor = A0; //Pino Analogico* no qual você conectou o sensor | |
void setup() | |
{ |
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 "Adafruit_TCS34725.h" | |
/* Inicializa com os valores padrões(int time = 2.4ms, gain = 1x) */ | |
// Adafruit_TCS34725 tcs = Adafruit_TCS34725(); | |
/* Initialise with specific int time and gain values */ | |
Adafruit_TCS34725 tcs = Adafruit_TCS34725(TCS34725_INTEGRATIONTIME_700MS, TCS34725_GAIN_1X); | |
void setup() |
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 "Adafruit_TCS34725_DUE.h" | |
/* Inicializa com os valores padrões(int time = 2.4ms, gain = 1x) */ | |
// Adafruit_TCS34725_W0 sensor1 = Adafruit_TCS34725_W0(); | |
// Adafruit_TCS34725_W1 sensor2 = Adafruit_TCS34725_W1(); | |
//------------ | |
bool S1; // SERVE PARA SABER SE O SENSOR FOI DETECTADO OU NÃO// S = 0 --> SENSOR | |
// NAO ENCONTRADO S = 1 --> SENSOR ENCONTRADO |
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 <iostream> |
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 <iostream> | |
using namespace std; | |
int main () | |
{ | |
//seu codigo | |
} |
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
cout << "Hello World\n"; |
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 <iostream> | |
using namespace std | |
int main () | |
{ | |
cout << "Hello World/n"; | |
} |
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 a; |
OlderNewer