github.com/tinygo-org/tinygo@v0.31.3-0.20240404173401-90b0bf646c27/src/machine/board_esp32c3-12f.go (about) 1 //go:build esp32c312f 2 3 package machine 4 5 // Built-in RGB LED 6 const ( 7 LED_RED = IO3 8 LED_GREEN = IO4 9 LED_BLUE = IO5 10 LED = LED_RED 11 ) 12 13 const ( 14 IO0 = GPIO0 15 IO1 = GPIO1 16 IO2 = GPIO2 17 IO3 = GPIO3 18 IO4 = GPIO4 19 IO5 = GPIO5 20 IO6 = GPIO6 21 IO7 = GPIO7 22 IO8 = GPIO8 23 IO9 = GPIO9 24 IO10 = GPIO10 25 IO18 = GPIO18 26 IO19 = GPIO19 27 RXD = GPIO20 28 TXD = GPIO21 29 ) 30 31 // ADC pins 32 const ( 33 ADC0 Pin = ADC1_0 34 ADC1 Pin = ADC2_0 35 36 ADC1_0 Pin = IO0 37 ADC1_1 Pin = IO1 38 ADC1_2 Pin = IO2 39 ADC1_3 Pin = IO3 40 ADC1_4 Pin = IO4 41 ADC2_0 Pin = IO5 42 ) 43 44 // UART0 pins 45 const ( 46 UART_TX_PIN = TXD 47 UART_RX_PIN = RXD 48 )