This file contains hidden or 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 <SPI.h> | |
| #include <MFRC522.h> | |
| #include <LiquidCrystal_I2C.h> | |
| #include <string.h> | |
| #define SS_PIN 21 | |
| #define RST_PIN 22 | |
| #define PB 4 | |
| #define I2C_ADDR 0x27 |
This file contains hidden or 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 <SPI.h> | |
| #include <MFRC522.h> | |
| #define SS_PIN 21 | |
| #define RST_PIN 22 | |
| #include <WiFi.h> | |
| #include <math.h> | |
| String texto = "Default"; |
This file contains hidden or 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 <SPI.h> | |
| #include <MFRC522.h> | |
| #define SS_PIN 10 //PIN SDA | |
| #define RST_PIN 9 //PIN RESET | |
| MFRC522 rfid(SS_PIN, RST_PIN); | |
| #include <LiquidCrystal_I2C.h> |
This file contains hidden or 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 <WiFi.h> | |
| #include <math.h> | |
| const char* ssid = "Romeu's Galaxy A73 5G"; | |
| const char* password = "12345678"; | |
| WiFiServer server(80); | |
| const int B = 4275; // B value of the thermistor | |
| const int R0 = 100000; // R0 = 100k | |
| const int pinTempSensor = 34; // Grove - Temperature Sensor connected to GPIO34 (ESP32) |
This file contains hidden or 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 <Servo.h> | |
| #define BLACK 1 | |
| #define WHITE 0 | |
| int sensor_left = A5; | |
| int sensor_mid = A4; | |
| int sensor_right = A3; | |
| int led_right = 13; |
This file contains hidden or 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 static org.junit.jupiter.api.Assertions.*; | |
| import org.junit.jupiter.api.BeforeEach; | |
| import org.junit.jupiter.params.ParameterizedTest; | |
| import org.junit.jupiter.params.provider.CsvSource; | |
| import org.mockito.*; | |
| class MontanhaRussaControladorTest { | |
| private MontanhaRussaControlador controlador; | |
| @Mock |
This file contains hidden or 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
| package ex12; | |
| public class VerificadorEleitoral { | |
| private CartorioEleitoral cartorioEleitoral; | |
| public VerificadorEleitoral(CartorioEleitoral cartorioEleitoral) { | |
| this.cartorioEleitoral = cartorioEleitoral; | |
| } | |
| public String consultarSituacao(int idade, String cpf) throws Exception { | |
| if(/*1*/idade < 0 || /*2*/idade > 200) /*3*/throw new Exception("idade invalida"); | |
| if(/*4*/cpf == nullpackage ex1; |
This file contains hidden or 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
| package ex04; | |
| import static org.junit.jupiter.api.Assertions.*; | |
| import static org.mockito.Mockito.*; | |
| import org.junit.jupiter.api.Test; | |
| import java.util.ArrayList; | |
| class RelatorioDeFuncionariosTest { |
This file contains hidden or 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
| package org.example; | |
| import static org.junit.jupiter.api.Assertions.*; | |
| class UtilsTest { | |
| @org.junit.jupiter.api.BeforeEach | |
| void setUp() { | |
| } |