Skip to content

Instantly share code, notes, and snippets.

View solennetadros's full-sized avatar

solennetadros

View GitHub Profile
//////html////
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>test</title>
<script src="libraries/p5.js" type="text/javascript"></script>
<script src="libraries/p5.dom.js" type="text/javascript"></script>
<script src="libraries/p5.sound.js" type="text/javascript"></script>
#include <CapacitiveSensor.h>
int moisturePin = A0;
int moistureValue;
//int touched;
#include <FastLED.h>
#define NUM_LEDS 60
#define DATA_PIN 13
#include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
pct=0;
//zeno
myBoat.pos.x=0;
myBoat.pos.y=650;
//MAIN SKETCH
#include "FastLED.h"
#define NUM_LEDS 15
#define DATA_PIN 3
#define CLOCK_PIN 13
// Define the array of leds
CRGB leds[NUM_LEDS];
#include <CapacitiveSensor.h>
//temp
#include <DHT.h>
#include "DHT.h"
#define DHTPIN 3
#define DHTTYPE DHT11
DHT dht(DHTPIN, DHTTYPE);
int ledT1 = 11;
int ledT2 = 10;
int ledT3 = 6;
#include <CapacitiveSensor.h>
//temp
#include <DHT.h>
#include "DHT.h"
#define DHTPIN 3
#define DHTTYPE DHT11
DHT dht(DHTPIN, DHTTYPE);
int ledT1 = 11;
int ledT2 = 10;
int ledT3 = 6;
//arduino
int switchPin = 4;
byte x = 111;
byte y = 121;
byte z = 222;
int readingX;
int readingY;
int readingZ;
int x;
int time;
const int minVal = 200;
const int maxVal = 450;
const int xLed = A5;
const int yLed = A4;
const int zLed = A3;
#include <Servo.h>
Servo myservo1;
Servo myservo2;
Servo myservo3;
const int servoMin = 10;
const int servoMax = 170;
void setup() {
/*
* IRremote: IRrecvDemo - demonstrates receiving IR codes with IRrecv
* An IR detector/demodulator must be connected to the input RECV_PIN.
* Version 0.1 July, 2009
* Copyright 2009 Ken Shirriff
* http://arcfn.com
*/
#include <IRremote.h>