This project is a light meter application for the M5Stack CoreInk device. It measures the light intensity using a BH1750 sensor and calculates the exposure value (EV) for photography. The application allows users to select different modes, ISO values, shutter speeds, and apertures.
- Measure light intensity using the BH1750 sensor
- Calculate exposure value (EV)
- Aperture priority and shutter priority modes
- Selectable ISO values, shutter speeds, and apertures
- Save and load settings to/from EEPROM
- Display information on the M5Stack CoreInk e-ink display
- Battery voltage monitoring
- Enter sleep mode after inactivity
- M5Stack CoreInk
- BH1750 light sensor
- PlatformIO
- Arduino framework
- Adafruit GFX Library
- Adafruit BusIO
- GxEPD2 Library
- Clone the repository:
git clone https://github.com/jujax/m5coreink-lightmeter.git
- Open the project in PlatformIO.
- Connect the M5Stack CoreInk device to your computer.
- Upload the code to the device.
- Power on the M5Stack CoreInk device.
- The light meter will initialize and display the current settings.
- Use the buttons to navigate the menu and adjust the settings:
BTN_UP
: Move up in the menu or increase the selected value.BTN_DOWN
: Move down in the menu or decrease the selected value.BTN_OK
: Select the current menu item or toggle edit mode.BTN_POWER
: Measure the ambient light and update the exposure value (EV).
- The device will enter sleep mode after 60 seconds of inactivity.
Contributions are welcome! Please follow these steps to contribute:
- Fork the repository.
- Create a new branch for your feature or bugfix.
- Commit your changes and push the branch to your fork.
- Create a pull request with a description of your changes.
This project is licensed under the MIT License. See the LICENSE file for details.
- Adafruit GFX Library
- Adafruit BusIO
- GxEPD2 Library
- BH1750 Library