diff options
| author | Aleksa Vučković <56649122+aleksav013@users.noreply.github.com> | 2023-03-10 22:55:42 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-10 22:55:42 +0000 |
| commit | 01905c85caf85f658e6efff8672d873e7a5fd8ad (patch) | |
| tree | 2782af11a61f1f3f828d568019174d67a9fed26f /src/config.h | |
| parent | 30a0aafd0feb6615b17bd226ba82010a6aaeb20b (diff) | |
| parent | f6ebc8903c51435cccfc95915f75d96f73f16fa7 (diff) | |
vladin deo
Diffstat (limited to 'src/config.h')
| -rw-r--r-- | src/config.h | 22 |
1 files changed, 22 insertions, 0 deletions
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 |
