github.com/tinygo-org/tinygo@v0.31.3-0.20240404173401-90b0bf646c27/src/machine/board_circuitplay_bluefruit.go (about) 1 //go:build circuitplay_bluefruit 2 3 package machine 4 5 const HasLowFrequencyCrystal = false 6 7 // GPIO Pins 8 const ( 9 D0 = P0_30 10 D1 = P0_14 11 D2 = P0_05 12 D3 = P0_04 13 D4 = P1_02 14 D5 = P1_15 15 D6 = P0_02 16 D7 = P1_06 17 D8 = P0_13 18 D9 = P0_29 19 D10 = P0_03 20 D11 = P1_04 21 D12 = P0_26 22 D13 = P1_14 23 ) 24 25 // Analog Pins 26 const ( 27 A1 = P0_02 28 A2 = P0_29 29 A3 = P0_03 30 A4 = P0_04 31 A5 = P0_05 32 A6 = P0_30 33 A7 = P0_14 34 A8 = P0_28 35 A9 = P0_31 36 ) 37 38 const ( 39 LED = D13 40 NEOPIXELS = D8 41 WS2812 = D8 42 43 BUTTONA = D4 44 BUTTONB = D5 45 SLIDER = D7 // built-in slide switch 46 47 BUTTON = BUTTONA 48 BUTTON1 = BUTTONB 49 50 LIGHTSENSOR = A8 51 TEMPSENSOR = A9 52 ) 53 54 // UART0 pins (logical UART1) 55 const ( 56 UART_TX_PIN = P0_14 // PORTB 57 UART_RX_PIN = P0_30 // PORTB 58 ) 59 60 // I2C pins 61 const ( 62 SDA_PIN = P0_05 // I2C0 external 63 SCL_PIN = P0_04 // I2C0 external 64 65 SDA1_PIN = P1_10 // I2C1 internal 66 SCL1_PIN = P1_12 // I2C1 internal 67 ) 68 69 // SPI pins (internal flash) 70 const ( 71 SPI0_SCK_PIN = P0_19 // SCK 72 SPI0_SDO_PIN = P0_21 // SDO 73 SPI0_SDI_PIN = P0_23 // SDI 74 ) 75 76 // PDM pins 77 const ( 78 PDM_CLK_PIN = P0_17 // CLK 79 PDM_DIN_PIN = P0_16 // DIN 80 ) 81 82 // USB CDC identifiers 83 const ( 84 usb_STRING_PRODUCT = "Adafruit Circuit Playground Bluefruit" 85 usb_STRING_MANUFACTURER = "Adafruit" 86 ) 87 88 var ( 89 usb_VID uint16 = 0x239A 90 usb_PID uint16 = 0x8045 91 ) 92 93 var ( 94 DefaultUART = UART0 95 )