Skip to content

Commit 839318c

Browse files
sctvme-no-dev
authored andcommitted
Create hall_effect_esp32.ino (espressif#450)
* Create hall_effect_esp32.ino A simple example to access the hall effect sensor in the esp32 * Create hall_effect.ino * Update hall_effect.ino Simple sketch to access the internal hall effect detector on the esp32 * Delete hall_effect_esp32.ino * Create HallSensor.ino * Update HallSensor.ino * Update HallSensor.ino * Delete hall_effect.ino
1 parent 023a32b commit 839318c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
//Simple sketch to access the internal hall effect detector on the esp32.
2+
//values can be quite low.
3+
//Brian Degger / @sctv
4+
5+
int val = 0;
6+
void setup() {
7+
Serial.begin(9600);
8+
}
9+
10+
void loop() {
11+
// put your main code here, to run repeatedly:
12+
val = hallRead();
13+
// print the results to the serial monitor:
14+
//Serial.print("sensor = ");
15+
Serial.println(val);//to graph
16+
}

0 commit comments

Comments
 (0)