Skip to content

Instantly share code, notes, and snippets.

Avatar
🚀

José Silva Jokerwin

🚀
View GitHub Profile
View RFID_Access.ino
/*
*
* All the resources for this project: https://lunite.net
*
* Created by FILIPEFLOP
*
*/
#include <SPI.h>
#include <MFRC522.h>
@Jokerwin
Jokerwin / .lando.php.ini
Created Oct 15, 2019
Lando xdebug enabled with PHPStorm
View .lando.php.ini
xdebug.remote_enable = 1
xdebug.remote_autostart = 1
xdebug.idekey = PHPSTORM
xdebug.remote_host = host.docker.internal
xdebug.remote_port = 10000 // Set debug port 10000 in PHPStorm
xdebug.remote_connect_back = 0
xdebug.remote_log=/app/xdebug.log
@Jokerwin
Jokerwin / EjFunctionsMaster.c
Created Nov 1, 2018
TDC 2018 Functions: SIN, SQUARE and RAMP
View EjFunctionsMaster.c
String function;
String frecuencia;
void setup() {
Serial.begin(9600);
Serial1.begin(9600);
}
void loop() {
View arduino master slave.c
int t= 0;
float resultado = 0;
char tipoOnda;
int output_state = 0;
unsigned long start;
void setup() {
Serial.begin(9600);
t = millis()/1000;
@Jokerwin
Jokerwin / Ej SIN SQUARE RAMP.c
Created Oct 30, 2018
SIN SQUARE RAMP functions
View Ej SIN SQUARE RAMP.c
String function;
String frecuencia;
void setup() {
Serial.begin(9600);
Serial1.begin(9600);
}
void loop() {
View Master.c
String inputString = "";
int salidaMaestro = 2;
int entradaMaestro = 4;
const byte respuesta = 3;
int buttonState = 0;
int comienzo = 0;
int fin = 0;
int demora = 0;
boolean bandera = false;
View Slave.c
// de bajo a alto
const byte interruptPin = 2;
const int outputTime = 7;
boolean outputFlag = false;
void setup() {
// initialize serial:
Serial.begin(9600);
pinMode(interruptPin, INPUT_PULLUP);
pinMode(outputTime, OUTPUT);
View MasterSlave with Time.c
// de bajo a alto
const byte interruptPin = 2;
const int outputTime = 7;
void setup() {
// initialize serial:
Serial.begin(9600);
pinMode(interruptPin, INPUT_PULLUP);
pinMode(outputTime, OUTPUT);
attachInterrupt(digitalPinToInterrupt(interruptPin),
View interrumption full.c
// de bajo a alto
const byte interruptPin = 2;
// de alto a bajo
const byte interruptPinHigh = 3;
void setup() {
// initialize serial:
Serial.begin(9600);
View interruption by RISING.c
const byte interruptPin = 2;
void setup() {
// initialize serial:
Serial.begin(9600);
pinMode(interruptPin, INPUT_PULLUP);
attachInterrupt(digitalPinToInterrupt(interruptPin),
blink, RISING);
}