Search The Support Knowledgebase


(database of technical support questions and answers):
   

Author Topic: Une LED, plusieurs boutons ?

Offline Makefred

  • Standard Level
  • Guru
  • *
  • *
  • *
  • Posts: 335
Une LED, plusieurs boutons ?
« on: June 14, 2019, 03:21:37 PM »
Hello !

Est-il possible d'assigner une SEULE LED à l'état ON/OFF de plusieurs boutons du genre:

EVAL=ButtonState(21; 22; 23...)

tout comme le TEENSY clignote à chaque signal reçu ?

Dubitatif !
« Last Edit: June 24, 2019, 07:52:17 PM by Software Support Staff »
  • My SLI Devices List:
    SLI-PRO, VDASH-EMU-ANDROID, VDASH-EMU-WIN, V2RButtonBox, VDASH-STREAMDECK

Offline Software Support Staff

  • Management
  • Master Guru
  • *
  • *
  • Posts: 3224
    • eksimracing website
Re: Une LED, plusieurs boutons ?
« Reply #1 on: June 14, 2019, 03:53:43 PM »
Hello,

oui, c'est très simple
il est possible de le faire avec l’opérateur OU ( || ) touches ALTGr + 6 2 fois

EVAL= buttonstate(1) || buttonstate(2)

ce qui veut dire allumer si l'état du bouton 1 est actif  OU  si l'etat du bouton 2 est actif

lire ou relire le chapitre sur EVAL et plus particulièrement les OPERATEURS:

https://www.eksimracing.org/help/fonction-avancee-eval-formule-math-ou-logique-avec-la-telemetrie/


Hope this helps

REMINDER: contact your hardware supplier/manufacturer for hardware issue, this support area is for software assistance only. Read the rules. Thank you.

Offline Makefred

  • Standard Level
  • Guru
  • *
  • *
  • *
  • Posts: 335
Re: Une LED, plusieurs boutons ?
« Reply #2 on: June 14, 2019, 09:22:47 PM »
Et bien c'est génial. Je vais finir expert  :D

Il ne me manquait plus que ça à peaufiner. Bientôt un nouveau template ACC édition.

Merci.
  • My SLI Devices List:
    SLI-PRO, VDASH-EMU-ANDROID, VDASH-EMU-WIN, V2RButtonBox, VDASH-STREAMDECK