diff options
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 |
