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 <SoftwareSerial.h> | |
#include <LiquidCrystal.h> | |
LiquidCrystal lcd(12, 11, 5, 4, 3, 2); | |
SoftwareSerial rfidReader(7, 8); //Pin 2 - RX /Pin 3 - TX ????? | |
char c= 0; // value read for serial port | |
void setup() { | |
lcd.begin(16, 2); | |
//Serial.begin(9600); //setup the Serial speed |
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
/* | |
LiquidCrystal Library - Hello World | |
Demonstrates the use a 16x2 LCD display. The LiquidCrystal | |
library works with all LCD displays that are compatible with the | |
Hitachi HD44780 driver. There are many of them out there, and you | |
can usually tell them by the 16-pin interface. | |
This sketch prints "Hello World!" to the LCD | |
and shows the time. |
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 <SoftwareSerial.h> | |
SoftwareSerial rfidReader(2, 3); //Pin 2 - RX /Pin 3 - TX | |
char c= 0; // value read for serial port | |
void setup() { | |
Serial.begin(9600); //setup the Serial speed | |
rfidReader.begin(9600); //setup the Rfid reader speed | |
} |
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
// Project 46 – Based on the Arduino Webserver example by David A. Mellis and Tom Igoe | |
//Bibliotecas novas adicionadas posteriormente por causa da mudança para nova IDE | |
#include <Dhcp.h> | |
#include <Dns.h> | |
#include <Ethernet.h> | |
#include <EthernetClient.h> | |
#include <EthernetServer.h> | |
#include <EthernetUdp.h> | |
#include <Arduino.h> |
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
// Project 37 - Part 1 | |
#include <OneWire.h> | |
#include <DallasTemperature.h> | |
// Data line goes to digital pin 3 | |
#define ONE_WIRE_BUS 3 | |
// Setup a oneWire instance to communicate with any OneWire devices (not just Maxim/Dallas temperature ICs) | |
OneWire oneWire(ONE_WIRE_BUS); |
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 <OneWire.h> | |
#include <Arduino.h> | |
int SensorPin = 10; | |
OneWire ds(SensorPin); | |
void setup(void) { | |
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
import random | |
palavras = ['frango','cachorro','gato','rato','sapo'] | |
vidas_restantes = 14 | |
letras_advinhadas='' | |
def escolhe_palavra(): | |
posicao_palavra = random.randint(0, len(palavras)-1) | |
return palavras[posicao_palavra] | |
def jogar(): |
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 <stdio.h> | |
int main(){ | |
int i=2; | |
int j=0; | |
int tab; | |
while(i<=10){ | |
printf("Tabuada do %d\n",i); | |
while(j<=10){ | |
tab = i * j; | |
printf("%d x %d = %d\n",i,j,tab); |
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 <stdio.h> | |
int main(){ | |
int i; | |
int j; | |
int tab; | |
for(i=2;i<=10;i++){ | |
printf("Tabuada do %d\n",i); | |
for(j=0;j<=10;j++){ | |
tab = i * j; | |
printf("%d x %d = %d\n",i,j,tab); |
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 <stdio.h> | |
int maximo (int x,int y, int z); | |
int main() | |
{ | |
// printf("Hello, World!\n"); | |
int num1,num2,num3; | |
printf("Digite 3 numeros\n"); | |
scanf("%d%d%d",&num1,&num2,&num3); |
OlderNewer