arduino-esp32-custom-lwip-p.../libraries/ESP32/examples/HallSensor/HallSensor.ino

16 lines
380 B
Arduino
Raw Permalink Normal View History

2023-02-25 16:13:53 +01:00
//Simple sketch to access the internal hall effect detector on the esp32.
//values can be quite low.
//Brian Degger / @sctv
int val = 0;
void setup() {
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
val = hallRead();
// print the results to the serial monitor:
//Serial.print("sensor = ");
Serial.println(val);//to graph
}