github.com/tinygo-org/tinygo@v0.31.3-0.20240404173401-90b0bf646c27/src/machine/board_x9pro.go (about) 1 //go:build x9pro 2 3 package machine 4 5 // https://hackaday.io/project/144350-hacking-wearables-for-mental-health-and-more/details 6 const ( 7 LED Pin = 4 // HR LED pin 8 UART_TX_PIN Pin = NoPin 9 UART_RX_PIN Pin = NoPin 10 SCL_PIN Pin = NoPin 11 SDA_PIN Pin = NoPin 12 SPI0_SCK_PIN Pin = 18 13 SPI0_SDI_PIN Pin = 19 14 SPI0_SDO_PIN Pin = 20 15 ) 16 17 // LCD pins. 18 const ( 19 OLED_CS Pin = 15 // chip select 20 OLED_RES Pin = 14 // reset pin 21 OLED_DC Pin = 13 // data/command 22 OLED_SCK Pin = 12 // SPI clock 23 OLED_SDO Pin = 11 // SPI SDO (chip-out, peripheral-in) 24 OLED_LED_POW Pin = 16 25 OLED_IC_POW Pin = 17 26 ) 27 28 const HasLowFrequencyCrystal = true 29 30 var DefaultUART = UART0