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
/* | |
PROJECT: Solar-Powered Smart Lock - Arduino Master Controller | |
DESCRIPTION: | |
This version communicates with a NodeMCU using a 3-bit binary signal. | |
It uses the signalToNodeMCU function to send specific codes for different events | |
like lock, unlock, tamper, and registration mode. | |
REVISION 8 - Restored 3-Bit Communication | |
*/ | |
#include <Keypad.h> | |
#include <Servo.h> |
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
import kotlinx.coroutines.* // add dependencies in gradle if using intellij | |
suspend fun fetchUserData(): String { | |
delay(2000) | |
return "User data retrieved: Duff Bastasa" | |
} | |
fun previewUserDate() = runBlocking { | |
println("Fetching user data...") | |
println(fetchUserData()) | |
} |