3
0

Added handout for assignment 5 and added link in README.

This commit is contained in:
K 2024-10-21 22:24:54 +05:30
parent fa047dee95
commit 1197a79bcb
Signed by: notkshitij
GPG Key ID: C5B8BC7530F8F43F
3 changed files with 10 additions and 7 deletions

Binary file not shown.

View File

@ -16,11 +16,13 @@ GPIO.cleanup()
GPIO.setup(16, GPIO.IN) # Set GPIO 16 as input for water level sensor signal GPIO.setup(16, GPIO.IN) # Set GPIO 16 as input for water level sensor signal
GPIO.setup(6, GPIO.OUT) # Set GPIO 6 as output for LED GPIO.setup(6, GPIO.OUT) # Set GPIO 6 as output for LED
try:
while True: while True:
if (GPIO.input(16)) if (GPIO.input(16))
GPIO.output(6, True) # Turn ON LED if water detected GPIO.output(6, True) # Turn ON LED if water detected
else else
GPIO.output(6, False) # Keep LED OFF if no water detected GPIO.output(6, False) # Keep LED OFF if no water detected
except KeyboardInterrupt:
GPIO.cleanup() GPIO.cleanup()
print("Program exited by user.")
# END OF CODE # END OF CODE

View File

@ -18,6 +18,7 @@
2. [Assignment-2](https://git.kska.io/sppu-te-comp-content/InternetOfThingsAndEmbeddedSystems/src/branch/main/Practical/Assignment-2/) 2. [Assignment-2](https://git.kska.io/sppu-te-comp-content/InternetOfThingsAndEmbeddedSystems/src/branch/main/Practical/Assignment-2/)
3. [Assignment-3](https://git.kska.io/sppu-te-comp-content/InternetOfThingsAndEmbeddedSystems/src/branch/main/Practical/Assignment-3/) 3. [Assignment-3](https://git.kska.io/sppu-te-comp-content/InternetOfThingsAndEmbeddedSystems/src/branch/main/Practical/Assignment-3/)
4. [Assignment-4](https://git.kska.io/sppu-te-comp-content/InternetOfThingsAndEmbeddedSystems/src/branch/main/Practical/Assignment-4/) 4. [Assignment-4](https://git.kska.io/sppu-te-comp-content/InternetOfThingsAndEmbeddedSystems/src/branch/main/Practical/Assignment-4/)
5. [Assignment-5](https://git.kska.io/sppu-te-comp-content/InternetOfThingsAndEmbeddedSystems/src/branch/main/Practical/Assignment-5/)
## Question Papers ## Question Papers
- [IN-SEM](https://git.kska.io/sppu-te-comp-content/InternetOfThingsAndEmbeddedSystems/src/branch/main/Question%20Papers/IN-SEM) - [IN-SEM](https://git.kska.io/sppu-te-comp-content/InternetOfThingsAndEmbeddedSystems/src/branch/main/Question%20Papers/IN-SEM)