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
<snippet> | |
<content><![CDATA[ | |
#include <stdio.h> | |
int main () { | |
$0 | |
return 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
void setup() { | |
Wire.begin( 2 ); | |
Wire.onRequest( requestEvent ); | |
Wire.onReceive( receiveEvent ); | |
} | |
void requestEvent(){ |
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> | |
int botoesEstado[4], portasEstado[5], movimentacaoEstado[3], andar = 0; | |
int chamadasExternas[4], chamadasInternas[4], reqAbrir, reqFechar, emergencia = 0; | |
int listaPrincipal[4], listaEspera[4] = {0}; | |
void setup () { | |
Wire.begin(); // Define como Master |
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 <LiquidCrystal.h> | |
#include <Wire.h> | |
int x, y, resposta = 0; | |
LiquidCrystal lcd(2, 3, 4, 5, 6, 7); | |
void setup() { | |
lcd.begin(16, 2); | |
lcd.home(); | |
Wire.begin();// Inicia a comunicação I2C, o Master não precisa de endereço |
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 <LiquidCrystal.h> | |
#include <Wire.h> | |
int x, y, resposta = 0; | |
LiquidCrystal lcd(2, 3, 4, 5, 6, 7); | |
void setup() { | |
lcd.begin(16, 2); | |
lcd.home(); | |
Wire.begin(2);// Inicia a comunicação I2c, e este arduino possui endereço 2 |
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
http://tumblr.everlane.com/ | |
http://blog.hipmunk.com/ | |
http://blog.shoplrapp.com/ | |
http://blog.mailgun.net/ | |
http://blog.grooveshark.com/ | |
http://blog.path.com/ | |
http://blog.instagram.com/ | |
http://blog.oink.com/ | |
http://blog.shelby.tv/ | |
http://blog.roamz.com/ |
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> | |
int state; | |
byte SW0 = 3; | |
byte SW1 = 2; | |
byte SW2 = 1; | |
byte minutes; | |
byte hours; |
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
char letra[4]={'a','b','c','d'}; | |
int brilho [4]={0,80,160,255}; | |
int stateLed=10; | |
int infoLed=9; | |
int info; | |
int flag = 0; | |
int resMaster = 0; | |
String number; |
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
/** | |
* Arduino - Simon Says | |
* ELTN.4M - Douglas Antunes, Eduardo Souza, Joao Gabriel e Mateus Mahado | |
*/ | |
#include <LiquidCrystal.h> | |
LiquidCrystal lcd(12, 11, 5, 4, 3, 2); | |
int rounds = 50; |
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
function fibonacci(n) { | |
if( n == 0 || n == 1 ){ | |
return n; | |
} else { | |
return fibonacci(n-1) + fibonacci(n-2); | |
} | |
} |