From 5cf305a2532f7a501ef3a63f83c1921282e06812 Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Fri, 17 Jun 2016 12:09:57 +0200 Subject: Ready to go Arduino prog template. Only needs io mapping and logic customization. --- io_declarations.h | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 io_declarations.h (limited to 'io_declarations.h') diff --git a/io_declarations.h b/io_declarations.h new file mode 100644 index 0000000..ea7ef74 --- /dev/null +++ b/io_declarations.h @@ -0,0 +1,34 @@ + +// ======================================== +// == INTERRUPTEURS ======================= +// ======================================== +typedef enum { + bt_test_arduino, bt_ext_cote_rue, + + NUM_ENTREES +} entree_t; + +static uint8_t pin_entrees[NUM_ENTREES] = { + 0, 4, +}; + + +// ======================================== +// == LIGNES ============================== +// ======================================== + +typedef enum { + led_arduino, rl_ecl_ext_jardin, + + NUM_SORTIES +} sortie_t; + + +static uint8_t pin_sorties[NUM_SORTIES] = { + 13, 41, +}; + +static char desc_sorties[NUM_SORTIES][16] = { + "LED Arduino", "Jardin", +}; + -- cgit v1.2.3