mirror of
https://github.com/OpenEPaperLink/OpenEPaperLink.git
synced 2026-03-21 00:04:28 +01:00
[PR #3] [MERGED] add pushbutton #358
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/OpenEPaperLink/OpenEPaperLink/pull/3
Author: @nlimper
Created: 1/28/2023
Status: ✅ Merged
Merged: 1/28/2023
Merged by: @jjwbruijn
Base:
master← Head:pushbutton📝 Commits (3)
0a97f8aadded button7211dcfbugfix on added button5808fddbutton fixes📊 Changes
5 files changed (+31 additions, -3 deletions)
View changed files
📝
ap_fw/main.c(+1 -0)📝
esp32_fw/include/commstructs.h(+1 -0)📝
esp32_fw/src/newproto.cpp(+1 -3)📝
tag_fw/fw29.bin(+0 -0)📝
tag_fw/syncedproto.c(+28 -0)📄 Description
This adds the possibility for a pushbutton on the tag. A button press causes an interrupt to wake from sleep, and triggers an update immediately.
Use #define HAS_BUTTON to turn this on/off.
To connect a button to the tag, use TEST-pin and GND, and place a capacitor of about 100nF in parallel to the switch. Due to the (internal) input pin pull_up resistor, I'm not sure how much extra current this will draw. I'm currently not able to measure microamperes, so this is to be determined.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.