Version 1.0 of piezo sensor library is out now
How to use?
- Download Piezo sensor for libray from below github repository.
- Now copy .IDX and .LIB file from downloaded folder and paste both file in Library folder inside installation directory of Proteus professional.
- Now Restart your proteus and search for "piezo" and you will get it inside proteus
This file contains hidden or 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
/* Code By Satyam Singh , Subscribe youtube channel Now */ | |
#define sensorpin A0 // analog pin 0 | |
void setup() { | |
Serial.begin(9600); | |
} | |
void loop() { | |
int a=analogRead(sensorpin); | |
Serial.println(a); | |
delay(500); | |
} |
1 Comments
how do we add in in our library
ReplyDelete