Skip to content

Instantly share code, notes, and snippets.

View virgilvox's full-sized avatar

Moheeb Zara virgilvox

View GitHub Profile
import explorerhat
import subprocess
import signal
import json
import time
import sys
import os
#include <Servo.h>
Servo yservo;
Servo xservo;
#define LASER_PIN 3
#define X_PIN 10
#define Y_PIN 9
void setup() {
/**************************************************************
*
* For this example, you need to install PubSubClient library:
* https://github.com/knolleary/pubsubclient
* or from http://librarymanager/all#PubSubClient
*
* TinyGSM Getting Started guide:
* http://tiny.cc/tiny-gsm-readme
*
* For more MQTT examples, see PubSubClient library
#include "WiFiS3.h"
#include <ArduinoMqttClient.h>
#include <ArduinoJson.h>
char ssid[] = ""; // your network SSID (name)
char pass[] = ""; // your network password
char mqtt_user[] = "";
char mqtt_pass[] = "";
#include "WiFiS3.h"
#include <ArduinoMqttClient.h>
char ssid[] = ""; // your network SSID (name)
char pass[] = ""; // your network password
char mqtt_user[] = "arduino";
char mqtt_pass[] = "pass";
[
{
"id": "fcc22e1b6f5267b7",
"type": "tab",
"label": "Flow 1",
"disabled": false,
"info": "",
"env": []
},
{
require('dotenv').config();
let { Voice } = require('@signalwire/realtime-api')
const projectId = process.env.SIGNALWIRE_PROJECT_ID
const token = process.env.SIGNALWIRE_TOKEN
const verifiedNumber = process.env.VERIFIED_NUMBER
require('dotenv').config();
let { Voice } = require('@signalwire/realtime-api')
const projectId = process.env.SIGNALWIRE_PROJECT_ID
const token = process.env.SIGNALWIRE_TOKEN
const verifiedNumber = process.env.VERIFIED_NUMBER
#include <FastLED.h>
#include <HX711_ADC.h>
//HX711 constructor (dout pin, sck pin)
HX711_ADC LoadCell(4, 5);
long t;
// How many leds in your strip?
#define NUM_LEDS 64