Ejemplo n.º 1
0
void expbrdInit()
{
  if(isInit)
    return;

  owInit();
  expbrdScan();

#ifndef FORCE_EXP_DETECT
  if (expbrdIsPresent(EXPBRD_VID_BITCRAZE, EXPBRD_PID_LEDRING))
#endif
  {
    neopixelringInit();
    DEBUG_PRINT("neopixelringInit ok\n");
  }

  isInit = true;
}
Ejemplo n.º 2
0
void expbrdInit()
{
  if(isInit)
    return;

  owInit();
  expbrdScan();

#ifndef FORCE_EXP_DETECT
  if (expbrdIsPresent(EXPBRD_VID_BITCRAZE, EXPBRD_PID_LEDRING))
#endif
  {
#ifndef BRUSHLESS_PROTO_DECK_MAPPING
    // Can't have LED-ring and brushless breakout at the same time
    // as they share TIM3
    neopixelringInit();
#endif
  }

  isInit = true;
}