repo_description: Go compiler for small places. Microcontrollers, WebAssembly (WASM/WASI), and command-line tools. Based on LLVM.
repo_topics: adafruit arduino arm avr esp32 gpio i2c llvm microbit microcontroller nrf51 nrf52 samd21 spi stm32 tinygo wasi wasm webassembly
code: //go:build mdbt50qrx
  
  package machine
  
  const HasLowFrequencyCrystal = false
  
  // GPIO Pins
  const (
  	D0 = P1_13 // LED1
  	D1 = P1_11 // LED2 (not populated by default)
  	D2 = P0_15 // Button
  )
  
  const (
  	LED = D0
  )
  
  // MDBT50Q-RX dongle does not have pins broken out for the peripherals below,
  // however the machine_nrf*.go implementations of I2C/SPI/etc expect the pin
  // constants to be defined, so we are defining them all as NoPin
  const (
  	UART_TX_PIN  = NoPin
  	UART_RX_PIN  = NoPin
  	SDA_PIN      = NoPin
  	SCL_PIN      = NoPin
  	SPI0_SCK_PIN = NoPin
  	SPI0_SDO_PIN = NoPin
  	SPI0_SDI_PIN = NoPin
  )
  
  // USB CDC identifiers
  const (
  	usb_STRING_PRODUCT      = "Raytac MDBT50Q - RX"
  	usb_STRING_MANUFACTURER = "Raytac Corporation"
  )
  
  var (
  	usb_VID uint16 = 0x239A
  	usb_PID uint16 = 0x810B
  )
  