This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| pt:software:homelab:library:module:motor [2015/12/09 17:42] – Criação deste novo documento. artica | pt:software:homelab:library:module:motor [2020/07/20 12:00] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 56: | Line 56: | ||
| * **//void servomotor_init(unsigned char index)//** \\ | * **//void servomotor_init(unsigned char index)//** \\ | ||
| - | | + | |
| - | * //index// - Index of servo motor. 0 or 1. | + | * //index// - Indíce do servomotor. 0 ou 1. |
| * **//void servomotor_position(unsigned char index, signed short position)// | * **//void servomotor_position(unsigned char index, signed short position)// | ||
| - | | + | |
| - | * //index// - Index of servo motor. 0 or 1. | + | * //index// - Indíce do servomotor. 0 ou 1. |
| - | * // | + | * // |
| - | ===== Example | + | ===== Exemplo |
| - | The following program demonstrates the usage of DC, stepper | + | O programa seguinte demonstra o uso de motores |
| <code c> | <code c> | ||
| Line 99: | Line 99: | ||
| </ | </ | ||
| - | This example demonstrates the speed adjustments of a DC motor. | + | Este exemplo demonstra o ajustamento da velocidade para um motor DC. |
| <code c> | <code c> | ||