github.com/tinygo-org/tinygo@v0.31.3-0.20240404173401-90b0bf646c27/src/machine/machine_rp2040_pins.go (about) 1 //go:build rp2040 || ae_rp2040 || badger2040 || challenger_rp2040 || feather_rp2040 || gopher_badge || kb2040 || macropad_rp2040 || nano_rp2040 || pico || qtpy_rp2040 || thingplus_rp2040 || thumby || tufty2040 || waveshare_rp2040_zero || xiao_rp2040 2 3 package machine 4 5 const ( 6 // GPIO pins 7 GPIO0 Pin = 0 // peripherals: PWM0 channel A 8 GPIO1 Pin = 1 // peripherals: PWM0 channel B 9 GPIO2 Pin = 2 // peripherals: PWM1 channel A 10 GPIO3 Pin = 3 // peripherals: PWM1 channel B 11 GPIO4 Pin = 4 // peripherals: PWM2 channel A 12 GPIO5 Pin = 5 // peripherals: PWM2 channel B 13 GPIO6 Pin = 6 // peripherals: PWM3 channel A 14 GPIO7 Pin = 7 // peripherals: PWM3 channel B 15 GPIO8 Pin = 8 // peripherals: PWM4 channel A 16 GPIO9 Pin = 9 // peripherals: PWM4 channel B 17 GPIO10 Pin = 10 // peripherals: PWM5 channel A 18 GPIO11 Pin = 11 // peripherals: PWM5 channel B 19 GPIO12 Pin = 12 // peripherals: PWM6 channel A 20 GPIO13 Pin = 13 // peripherals: PWM6 channel B 21 GPIO14 Pin = 14 // peripherals: PWM7 channel A 22 GPIO15 Pin = 15 // peripherals: PWM7 channel B 23 GPIO16 Pin = 16 // peripherals: PWM0 channel A 24 GPIO17 Pin = 17 // peripherals: PWM0 channel B 25 GPIO18 Pin = 18 // peripherals: PWM1 channel A 26 GPIO19 Pin = 19 // peripherals: PWM1 channel B 27 GPIO20 Pin = 20 // peripherals: PWM2 channel A 28 GPIO21 Pin = 21 // peripherals: PWM2 channel B 29 GPIO22 Pin = 22 // peripherals: PWM3 channel A 30 GPIO23 Pin = 23 // peripherals: PWM3 channel B 31 GPIO24 Pin = 24 // peripherals: PWM4 channel A 32 GPIO25 Pin = 25 // peripherals: PWM4 channel B 33 GPIO26 Pin = 26 // peripherals: PWM5 channel A 34 GPIO27 Pin = 27 // peripherals: PWM5 channel B 35 GPIO28 Pin = 28 // peripherals: PWM6 channel A 36 GPIO29 Pin = 29 // peripherals: PWM6 channel B 37 38 // Analog pins 39 ADC0 Pin = GPIO26 40 ADC1 Pin = GPIO27 41 ADC2 Pin = GPIO28 42 ADC3 Pin = GPIO29 43 )