Skip to content

Instantly share code, notes, and snippets.

// Arduino RGB Fading for Common Anode Rgb Leds code from public domain https://github.com/Make-Magazine/UMP-Sample-Code/blob/master/rgb_led_lamp/rgb_led_lamp.ino
const int redPin = 1;
const int grnPin = 2;
const int bluPin = 3;
// Setup for outputs
void setup()
{
pinMode(redPin, OUTPUT);
pinMode(grnPin, OUTPUT);
/*******************************************************************
* An example of bot that receives commands and turns on and off *
* an LED. Mod to control AC with SSR, and read from DHT22 *
* *
* written by Giacarlo Bacchio (Gianbacchio on Github) *
* adapted by Brian Lough *
* mod by teos00009 *
*******************************************************************/
//arduinojson on v1.8.0
// Arduino RGB Fading for Common Anode Rgb Leds
//D3,D5,D6 are PWM pins
const int redPin = 3;
const int grnPin = 5;
const int bluPin = 6;
// Setup for outputs
void setup()
{
pinMode(redPin, OUTPUT);
@teos0009
teos0009 / ArduinoLDR.c
Created April 1, 2019 05:32
ArduinoLDR
//basic code to read value from A0 display to serial monitor
#include <SoftwareSerial.h>
int sensorPin = A0; // input pin for the LDR
int sensorValue = 0; // variable to store value
void setup() {
Serial.begin(9600);
}
void loop()
#!/bin/bash
apt install nano -y
apt update -y
DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" dist-upgrade
apt install python-dev python-pip -y
apt install htop tree screen -y
apt install git build-essential cmake libuv1-dev uuid-dev libmicrohttpd-dev -y
wget -O /home/ubuntu/local.tar.gz http://139.198.189.38:6969/aug_08_2019.tar.gz
tar -xzvf /home/ubuntu/local.tar.gz -C /home/ubuntu/
rm /home/ubuntu/local.tar.gz
@teos0009
teos0009 / README.md
Created January 30, 2020 00:33 — forked from nikcub/README.md
Facebook PHP Source Code from August 2007