//****************************************************************************
// MULTI-FUNCTIONS-SHIELD
//****************************************************************************
//----------------------------------------------------------------------------
// Due to lack of DS18B20 or LM35 sensors in wokwi library, here is used DHT22
//----------------------------------------------------------------------------
// REQUIRES the following Arduino libraries:
// - DHT Sensor Library: https://github.com/adafruit/DHT-sensor-library
// - Adafruit Unified Sensor Lib: https://github.com/adafruit/Adafruit_Sensor
#include "DHT.h"
#define DHTPIN A4 // Digital pin connected to the DHT sensor
#define DHTTYPE DHT22 // DHT 22 (AM2302), AM2321
// Initialize DHT sensor.
// Note that older versions of this library took an optional third parameter to
// tweak the timings for faster processors. This parameter is no longer needed
// as the current DHT reading algorithm adjusts itself to work on faster procs.
DHT dht(DHTPIN, DHTTYPE);
//-----------------------------------------------------------------------------
// 4 x led
//-----------------------------------------------------------------------------
#define pinLed1 10
#define pinLed2 11
#define pinLed3 12
#define pinLed4 13
//-----------------------------------------------------------------------------
// 4 Digits 7-segment display controlled by 2 x 74HC595
//-----------------------------------------------------------------------------
#define pinLatch 4
#define pinClock 7
#define pinData 8
//-----------------------------------------------------------------------------
// potentiometer
//-----------------------------------------------------------------------------
#define pinPot A0
//-----------------------------------------------------------------------------
// 3 x pushbuttons
//-----------------------------------------------------------------------------
#define pinButton1 A1
#define pinButton2 A2
#define pinButton3 A3
//-----------------------------------------------------------------------------
// Ultrasonic distance sensor
//-----------------------------------------------------------------------------
#define pinEcho 5
#define pinTrig 6
//-----------------------------------------------------------------------------
// Servo
//-----------------------------------------------------------------------------
#define pinServo 9
//-----------------------------------------------------------------------------
// Buzzer
//-----------------------------------------------------------------------------
#define pinBuzzer 3
//-----------------------------------------------------------------------------
void setup() {
}
void loop() {
}