Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Introduce menu handling with one button

Aperta
#136 6 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
cpp
Ambito
embedded-iot

Direzione di ricerca

Inizia esaminando le issue #28, #52, #53, #60 e #86 per comprendere le esigenze esistenti relative ai menu e al cambio dei preset. Poi ispeziona i punti di ingresso del firmware per la gestione dei pulsanti e l’accesso alla modalità del dispositivo, che non sono nominati in questa issue. Il lavoro sarà considerato completato quando saranno disponibili un design concordato per l’interazione con il menu e un ambito di implementazione definito per il dispositivo a un solo pulsante.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

button enhancement

As introduction I've to write that I'm not really sure if we should add this complexity to the device. Besides the effort to implement this, the OBS should be easy to use and additional functionality always adds complexity for the user. At least we must do it as intuitive and usable as possible for a one button device. Looking at #28, #52, #53, #60, #86, likely others and the demand to switch between different presets stored on the OBS we seem to need such a functionality. Please share your thoughts.

Idea: Long press of the button (+1s?) is used as a different action than the current short press. If a long press occurs, the OBS goes to menu mode where you can cycle through menu items (short press) and select items with a long press. There can be a hierarchy of menus, 1st item is always < back (do we internationalize this?), there must not be more than 5(?) items on one level. Likely all functions will be paused while in menu mode.

The 1 char of the item shows the action < is back, > leads to a sub menu, * triggers a direct action, ? triggers an action after a additional confirmation.

Main
< back
? delete last
* mark private
> pause recording
> select preset
> info
> system
Main - delete last
Delete last overtaking
* yes
* no
Main - pause recording
Paused
< back
Main - select preset
< back
* Bike 1/Art3mis
* Bike 1/Parzival
* Bike 2

The preset contains things like the left and right offset, user id, ...

Main - info
< back
* version: v0.3.444
* 30 cm left offset
* 30 cm right offset
* 454 reports
* 5 sats
* 12:00 2020-11-24
* 3.2 V
* ...
* filesize: ???
* ....

(all actions go back to the active mode)

Main - system
< back
? restart to server
? restart
? halt
* demo
? erase
Lingua principale
C++
Stelle
124
Fork
29
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di openbikesensor/OpenBikeSensorFirmware

Tutte le issue di openbikesensor/OpenBikeSensorFirmware

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.