Prvni ulozeni z chegewara githubu
This commit is contained in:
0
libraries/ESP32/examples/HallSensor/.skip.esp32c3
Normal file
0
libraries/ESP32/examples/HallSensor/.skip.esp32c3
Normal file
0
libraries/ESP32/examples/HallSensor/.skip.esp32s2
Normal file
0
libraries/ESP32/examples/HallSensor/.skip.esp32s2
Normal file
0
libraries/ESP32/examples/HallSensor/.skip.esp32s3
Normal file
0
libraries/ESP32/examples/HallSensor/.skip.esp32s3
Normal file
15
libraries/ESP32/examples/HallSensor/HallSensor.ino
Normal file
15
libraries/ESP32/examples/HallSensor/HallSensor.ino
Normal file
@ -0,0 +1,15 @@
|
||||
//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
|
||||
}
|
Reference in New Issue
Block a user