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> | |
#include "MAX30105.h" | |
#include "spo2_algorithm.h" | |
/* Configuracion leds*/ | |
int ledOnOFf = 48; | |
int ledGreen_AirSensor = 30; | |
int ledYellow_AirSensor = 32; | |
int ledRed_AirSensor = 34; |
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
const newman = require('newman'); | |
const fs = require('fs'); | |
const collectionFileRoute = 'micoleccion.json'; | |
const detailFileRoute = 'colecciondetalle.json'; | |
const collectionFileRouteCreated = './sin/micoleccion_sinvariables.json'; | |
const detailFileRouteCreated = './sin/colecciondetalle_sinvariables'; | |
const commonNameForFiles = 'mi_api'; | |
const arrayPropertyName = 'nombreObjetos'; | |
const idPropertyName = 'id'; | |
const variablesNamesToReplace = ['{{variable1}}','{{variable2}}', '{{num_pag}}', '{{num_results}}']; |
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
let Cortex = require('./cortex'); | |
let socketUrl = 'wss://localhost:6868'; | |
let user = { | |
"license":"", | |
"clientId":"miClientID", | |
"clientSecret":"miSecret", | |
"debit":1 | |
} | |
console.log('created user'); | |
let currentRecord = new Cortex(user, socketUrl); |
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
class GameLogic{ | |
userOption = 2; | |
machineOption = 2; | |
responseDict = { | |
1: "Piedra", | |
2: "Papel", | |
3: "Tijera" | |
}; |
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
{ | |
"fac": [ "neutral","surprise",0.115789,"neutral",0.0 ], | |
"sid":"02438940–5a41–4223–8cde-5d1299856cc6", | |
"time":1612109674.3526 | |
} |
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
sub(streams){ | |
this.socket.on('open',async ()=>{ | |
await this.checkGrantAccessAndQuerySessionInfo() | |
this.subRequest(streams, this.authToken, this.sessionId); | |
this.socket.on('message', (data)=>{ | |
if(this.isRecordToSave){ | |
this.recordSaved.push(JSON.parse(data)); | |
this.numberOfRecords++; | |
this.isRecordToSave = this.numberOfRecords < 10; | |
} |
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> | |
const int rs = 8, en = 11, d4 = 4, d5 = 5, d6 = 6, d7 = 7; | |
LiquidCrystal lcd(rs, en, d4, d5, d6, d7); | |
int InitialPositionMoveDisplay = 16; | |
int PositionsToMoveDisplay = 0; | |
void setup() | |
{ |
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
int airSensorDig = 10; | |
int airSensorAnalog = 3; | |
int ppm_AirSensor = 0; | |
float tension_AirSensor = 0; | |
bool state_AirSensor = false; | |
String resultAirSensorPPM = ""; | |
void setup() | |
{ | |
} |
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
int photoSensorDig = 9; | |
int photoSensorAnalog = 0; | |
String resultPhotoSensor = ""; | |
void setup() | |
{ | |
} | |
void loop() |
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 "MAX30105.h" | |
#include "spo2_algorithm.h" | |
MAX30105 heartAndOxigenSensor; | |
uint32_t irBuffer[50]; //infrared LED sensor data | |
uint32_t redBuffer[50]; //red LED sensor data | |
int32_t bufferLength; //data length | |
int32_t spo2; //SPO2 value | |
int8_t validSPO2; //indicator to show if the SPO2 calculation is valid | |
int32_t heartRate; //heart rate value |
NewerOlder