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); | |
} |
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); |
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; |
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); | |
} |
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(); | |
} | |
void loop() { |
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 { |
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(); |
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
/************************************************** | |
* Ultrasonic Distance Sensor Hat with NeoPixels, vibration motor and buzzer | |
* based on HC-SR04 sonar sensor, NeoPixel libraries | |
* Author: Christine Farion | |
* Site: www.christinefarion.com | |
* Twitter: @cmoz | |
* Date: October 2021 | |
* License: CC BY-NC-SAi | |
* | |
* using Adafruit NeoPixel Library |
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() { |
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; |