0
mirror of https://github.com/torvalds/GuitarPedal.git synced 2026-06-07 20:55:36 +00:00
Files
Linus Torvalds 61810e36e6 Bring in the rest of the project
This brings in the actual real code: the "drivers" for the SH1107
display module, the i2c EEPROM chip, the actual UI for the thing, and
the code "blink.c" program.

Why is it called "blink.c"? Because all MCU projects start as a simple
LED blinking thing. Including this one. And the name just never changes.

The CMakeList.txt file then really brings the room together.

Doing

	cd Software
	make prep
	make
	make flash

should be more or less sufficient to build the thing and flash the end
result (you'll need to have the standard arm cross-build tools available
etc, of course)

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2026-05-13 14:55:56 -07:00

47 lines
794 B
C

//
// Board GPIO pin definitions
//
//
// New custom carrier board:
// - WS2812 on GPIO1
//
// I2C0 on GPIO4/5 (and I2C1 on GPIO2/3)
//
// Foot (or finger) switches on GPIO 6/7/8. Internal
// pull-up with switch closing to GND.
//
#define GPIO_SW1 12
#define GPIO_SW2 28
#define GPIO_SW3 13
#define GPIO_SW4 29
#define PWM_PIN1 0
#define PWM_PIN2 1
#define I2S_BCLK 8
#define I2S_FSYNC 9
#define I2S_DIN 10
#define I2S_DOUT 11
#define GPIO_ROT1A 6
#define GPIO_ROT1B 7
#define GPIO_ROT2A 26
#define GPIO_ROT2B 27
#define I2C0_SDA 4
#define I2C0_SCL 5
#define I2C1_SDA 2
#define I2C1_SCL 3
#define MC24C02_I2C i2c0, 0x50
#define TAC5112_I2C i2c0, 0x51
#define SH1106_I2C i2c1, 0x3c
// Nor all boards have this
#if 0
#define WS2812_PIN 1 // WS2812 RGB LED
#endif