From f6ebc8903c51435cccfc95915f75d96f73f16fa7 Mon Sep 17 00:00:00 2001 From: vmisovic Date: Tue, 21 Feb 2023 13:18:51 +0100 Subject: vmisovic: code organization, drawing letters source files moved to 'src' folder program divided into multiple files drawing letters aleksav013: fixed vmisovic commits moved functions from .h to .c file renamed led_cube.c to main.c --- src/config.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/config.h (limited to 'src/config.h') diff --git a/src/config.h b/src/config.h new file mode 100644 index 0000000..7f8bc9a --- /dev/null +++ b/src/config.h @@ -0,0 +1,22 @@ +#ifndef CONFIG_H +#define CONFIG_H +// configuration file + +// define pico gpio pins used for controlling 74HC595 chips +#define DATA_PIN 2 +#define CLOCK_PIN 3 +#define LATCH_PIN 4 +#define LED_PIN 25 + +// define the order of 74HC595 chain +#define CHIP_0 0 +#define CHIP_1 8 +#define CHIP_2 6 +#define CHIP_3 4 +#define CHIP_4 2 +#define CHIP_5 1 +#define CHIP_6 3 +#define CHIP_7 5 +#define CHIP_8 7 + +#endif -- cgit v1.2.3