View arduino_simple_sample.ino
#include <Fuzzy.h> | |
// Instantiating a Fuzzy object | |
Fuzzy *fuzzy = new Fuzzy(); | |
void setup() | |
{ | |
// Set the Serial output | |
Serial.begin(9600); | |
// Set a random seed |
View person-test.cpp
// Tests file: person-test.cpp | |
#include "Person.h" | |
#include "gtest/gtest.h" | |
#include "string" | |
using std::string; | |
TEST(Person, testNameMethods) | |
{ | |
string name = "AJ O. Alves"; |
View Person.cpp
/* | |
Implementation of Person class: Person.cpp | |
*/ | |
#include "Person.h" | |
Person::Person(){}; | |
void Person::setName(string name){ | |
this->name = name; |
View Person.h
/* | |
Definition on Person class: Person.h | |
*/ | |
#ifndef PERSON_H | |
#define PERSON_H | |
#include "string" | |
using std::string; | |
class Person |
View pessoa-teste.cpp
// Arquivo de testes: pessoa-teste.cpp | |
#include "Pessoa.h" | |
#include "gtest/gtest.h" | |
#include "string" | |
using std::string; | |
TEST(Pessoa, testarMetodosParaNome) | |
{ | |
string nome = "AJ O. Alves"; |
View Pessoa.cpp
/* | |
Implementação da classe Pessoa: Pessoa.cpp | |
*/ | |
#include "Pessoa.h" | |
Pessoa::Pessoa(){}; | |
void Pessoa::setNome(string nome) | |
{ |
View Pessoa.h
/* | |
Definição da classe Pessoa: Pessoa.h | |
*/ | |
#ifndef PESSOA_H | |
#define PESSOA_H | |
#include "string" | |
using std::string; | |
class Pessoa |
View test_nrf24l01_nodemcu_receiver.ino
/* | |
* AJ Alves (aj.alves@zerokol.com) | |
*/ | |
#include <SPI.h> | |
#include "nRF24L01.h" | |
#include "RF24.h" | |
// Instantiate RF24 class with CE and CSN values | |
RF24 radio(2, 15); |
View nrf24l01-receiver-test.ino
/* | |
* AJ Alves (aj.alves@zerokol.com) | |
*/ | |
#include <SPI.h> | |
#include "nRF24L01.h" | |
#include "RF24.h" | |
// Instantiate RF24 class with CE and CSN values | |
RF24 radio(9, 10); |
View nrf24l01-transmissor-test.ino
/* | |
* AJ Alves (aj.alves@zerokol.com) | |
*/ | |
#include <SPI.h> | |
#include "nRF24L01.h" | |
#include "RF24.h" | |
// Instantiate RF24 class with CE and CSN values | |
RF24 radio(9, 10); |