Skip to content

Instantly share code, notes, and snippets.

@Thiemann96
Thiemann96 / median.ino
Last active February 23, 2021 15:06
Ultrasonic Median Library NewPing muss zusätzlich installiert werden. https://www.arduino.cc/reference/en/libraries/newping/
#include <NewPing.h>
#define TRIGGER_LEFT 1
#define ECHO_LEFT 2
#define TRIGGER_RIGHT 3
#define ECHO_RIGHT 4
#define SENSOR_MAX_RANGE 400
NewPing left(TRIGGER_LEFT, ECHO_LEFT, SENSOR_MAX_RANGE);
NewPing right(TRIGGER_RIGHT, ECHO_RIGHT, SENSOR_MAX_RANGE);
#include <Adafruit_NeoPixel.h>
#include <Adafruit_MPU6050.h>
#include <Wire.h>
#include <WiFi.h>
#include <WiFiMulti.h>
#include <Adafruit_SSD1306.h>
#include "SD.h"
#include "SPI.h"
// display defines