Last active
November 6, 2024 12:23
-
-
Save antonprafanto/05294ea1382f351240a00182d4100d2e to your computer and use it in GitHub Desktop.
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
| int val = 0; | |
| void setup() { | |
| Serial.begin(9600); | |
| } | |
| void loop() { | |
| val = hallRead(); // Membaca nilai sensor efek Hall | |
| Serial.println(val); // Mencetak hasil ke serial monitor | |
| delay(1000); // Menambahkan jeda 1 detik | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment