DFRobot DFRduino Romeo-All in one Controller V1.1 Руководство - Страница 6

Просмотреть онлайн или скачать pdf Руководство для Контроллер DFRobot DFRduino Romeo-All in one Controller V1.1. DFRobot DFRduino Romeo-All in one Controller V1.1 13 страниц.

DFRobot DFRduino Romeo-All in one Controller V1.1 Руководство
}
digitalWrite(13, LOW);
}
// Convert ADC value to key number
int get_key(unsigned int input)
{
int k;
for (k = 0; k < NUM_KEYS; k++)
{
if (input < adc_key_val[k])
{
return k;
}
}
if (k >= NUM_KEYS)
k = -1;
// No valid key pressed
return k;
}
 
Dual DC Motor Speed Control
Hardware Setting
Connect four motor wires to Motor Terminal. And apply power through motor power terminal (Figure
4).
Fig3: Romeo Motor Connection Diagram