mirror of
https://git.j0bot.ch/admin_j0bot/xerbot-arduino.git
synced 2026-11-29 07:55:08 +00:00
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01R75H65SynGwRG5vBSoYeZ1
9 lines
597 B
C++
9 lines
597 B
C++
// 07-broches : chaque broche se reconfigure DEPUIS LE LABO (contribuer › ⬢ xeroction, ou xerbot) — entrée, pull-up, sortie, PWM, ADC.
|
||
// Seules les broches listées ici sont pilotables (ne pas nuire : jamais une broche de flash, d'USB ou de boot de ta carte).
|
||
#include <Xerbot.h>
|
||
Xerbot xb("banc-1", "banc");
|
||
// ESP32 DevKit : des broches sans risque. Uno : {2, 3, 4, 5, 6, A0}.
|
||
static const uint8_t BROCHES[] = {2, 4, 5, 18, 19, 21, 22, 23, 25, 26, 32, 33, 34, 35};
|
||
void setup() { Serial.begin(115200); xb.broches(BROCHES, sizeof BROCHES); xb.begin(Serial); }
|
||
void loop() { xb.loop(); }
|