https://github.com/monorkin/mruby-esp32-hall
mruby interface to the ESP32's built-in Hall effect sensor
https://github.com/monorkin/mruby-esp32-hall
esp32 hall hall-effect-sensor mruby mruby-gem
Last synced: 27 days ago
JSON representation
mruby interface to the ESP32's built-in Hall effect sensor
- Host: GitHub
- URL: https://github.com/monorkin/mruby-esp32-hall
- Owner: monorkin
- License: mit
- Created: 2018-07-05T21:28:49.000Z (almost 8 years ago)
- Default Branch: develop
- Last Pushed: 2018-07-06T06:23:08.000Z (almost 8 years ago)
- Last Synced: 2026-05-02T17:35:04.289Z (about 1 month ago)
- Topics: esp32, hall, hall-effect-sensor, mruby, mruby-gem
- Language: C
- Homepage:
- Size: 2.11 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mruby-esp32-hall
mruby interface for the ESP32's built-in Hall effect sensor

## Installation
Add the line below to your `build_config.rb`:
```ruby
conf.gem github: 'stankec/mruby-esp32-hall'
```
## Example
The following code reads the sensor's value every 100ns and prints the result.
```Ruby
loop do
# Reads and returns the sensor's current value
value = ESP32::Hall.current_value
puts "Hall effect: #{value}"
ESP32::System.delay(100)
end
```
## Contributing
The `develop` branch contains all the latest changes and all development is
done on it. Stable releases are merged into the `master` branch.
All contributions and suggestions are welcome.
## License
This project is licensed under the MIT license. Reference the
[LICENSE](/LICENSE) file to see the full license text.
This software comes "as is" and without any kind of warranty.