View BlinkESP32.ino
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 int ledPin = 2; // User LED is connected to Pin 2 | |
// the setup function runs once when you press reset or power the board | |
void setup() { | |
// initialize digital pin LED_BUILTIN as an output. | |
pinMode(ledPin, OUTPUT); | |
} | |
// the loop function runs over and over again forever | |
void loop() { |
View C6_6.5TouchTogether
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 <Adafruit_CircuitPlayground.h> | |
uint8_t pixeln = 0; | |
int capsense[10]; | |
void setup() { | |
CircuitPlayground.begin(); | |
for(int i=0; i< CircuitPlayground.strip.numPixels(); i++) { | |
CircuitPlayground.setPixelColor(i, ( 0, 0, 255)); | |
CircuitPlayground.strip.show(); |
View C6_6.1HandHexCol
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 <Wire.h> | |
#include "Adafruit_TCS34725.h" | |
Adafruit_TCS34725 tcs = Adafruit_TCS34725(TCS34725_INTEGRATIONTIME_50MS, TCS34725_GAIN_4X); | |
void setup() { | |
Serial.begin(9600); | |
Serial.println("Color View Test!"); | |
if (tcs.begin()) { | |
Serial.println("Found sensor"); | |
} else { |
View C5_5.6TouchNature
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 "ADCTouch.h" | |
#include <Servo.h> | |
Servo myservo; | |
int ref0; | |
int touchPin1 = A7; | |
int val0constrained = 0; |
View C5_5.4Sound
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
#define sensorPin 7 | |
int ledPin = 2; | |
unsigned long lastEvent = 0; | |
void setup() { | |
pinMode(sensorPin, INPUT); | |
pinMode(ledPin, OUTPUT); | |
Serial.begin(9600); | |
} |
View C5_5.3Stretch
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
#define MYRESISTOR 10000 | |
#define STRETCHPIN A0 | |
void setup(void) { | |
Serial.begin(9600); | |
} | |
void loop(void) { | |
float reading; |
View C5_5.1UltrasonicGemma
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 trigPin = A0; | |
int echoPin = A1; | |
long duration, cm, inches; | |
void setup() { | |
Serial.begin (9600); | |
pinMode(trigPin, OUTPUT); | |
pinMode(echoPin, INPUT); |
View C4_4.6GemmaFlexServo
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 <Servo.h> | |
Servo servo1; | |
int flexpin = A0; | |
void setup() | |
{ | |
Serial.begin(9600); | |
servo1.attach(A1); | |
} |
View C4_4.5LEDFlex
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 ledPin = 9; | |
int flexPin = 10; | |
int flexValue; | |
void setup(){ | |
pinMode(ledPin, OUTPUT); | |
pinMode(flexPin, INPUT); | |
Serial.begin(9600); | |
} |
View C4_4.2HelloNeoPixels
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 <Adafruit_CircuitPlayground.h> | |
float X, Y, Z; | |
#define MOVE_THRESHOLD 3 //To 10, lower the number more sensitive | |
void setup() { | |
Serial.begin(9600); | |
CircuitPlayground.begin(); | |
} |
NewerOlder