Skip to content

Instantly share code, notes, and snippets.

View justind000's full-sized avatar

Justin Decker justind000

View GitHub Profile
#include <Arduino.h>
#include "ISE_pH.h"
#include <CayenneMQTTESP32.h>
ISE_pH pH;
// your network information
char ssid[] = "";
char wifiPassword[] = "";
@justind000
justind000 / main.cpp
Last active February 27, 2019 20:41
Isolated EC example use
#include "uFire_EC.h"
uFire_EC EC;
ec.measureEC();
@justind000
justind000 / main.py
Last active February 27, 2019 20:41
Isolated EC python example use
from uFire_EC import uFire_EC
ec = uFire_EC()
ec.measureEC()
@justind000
justind000 / main.rs
Last active February 28, 2019 15:27
extern crate ufire_iso_ec;
use ufire_iso_ec::*;
let mut ec = EcProbe::new("/dev/i2c-3", 0x3c);
let ms = ec.measure_ec();
@justind000
justind000 / Watson.h
Last active July 18, 2019 21:23
IoT Hydroponics - Watson
#include <WiFiClientSecure.h>
#include <PubSubClient.h>
#include <ArduinoJson.h>
// your network information
const char *ssid = "";
const char *password = "";
#define Organization_ID "" // your organization
#define Device_Type "" // your registered device type
#include <nocan.h>
#include <ArduinoJson.h>
#define ARDUINO_SAMD_VARIANT_COMPLIANCE 10610
#include <uFire_EC_JSON.h>
#include <uFire_pH_JSON.h>
#include <uFire_ORP_JSON.h>
NocanChannelId tid;
uFire_EC_JSON ec;
uFire_pH_JSON ph;
@justind000
justind000 / main.rs
Last active September 4, 2019 09:45
ISE Rust use example
extern crate ufire_ise;
use ufire_ise::*;
let mut ph = ufire_ise::IseProbe::new("/dev/i2c-3", 0x3f).unwrap();
ph.measure_ph();
@justind000
justind000 / main.rs
Created September 4, 2019 09:50
ORP Rust
extern crate ufire_ise;
use ufire_ise::*;
let mut orp = ufire_ise::IseProbe::new("/dev/i2c-3", 0x3f).unwrap();
orp.measure_mv();
@justind000
justind000 / main.cpp
Last active September 14, 2019 14:16
uFire SHT20
#include "uFire_SHT20.h"
uFire_SHT20 sht20;
float temp = sht20.temperature();
@justind000
justind000 / main.cpp
Created September 30, 2019 09:36
PAR use
#include "uFire_PAR.h"
uFire_PAR par;
float ppfd = par.measurePAR();