Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Motorino_Lib xxx_Motorino_Lib
Kanal Class Reference
Verwendet Motorino,h mbed Library to use a Motorino shield from Joy IT Copyright (c) 2021 Jörg Sturm Released under the MIT License: http://mbed.org/license/mit. More...
#include <Kanal.h>
Public Member Functions | |
| Kanal (int nr) | |
| Create Kanal Instance. | |
| void | go (float w, int zeit) |
| Drehe den Servo um Winkel. | |
| bool | isBusy () |
| Abfrage, ob die Bewegung läuft. | |
| void | setStartEnd (float pStart, float pEnd) |
| Setzt Tastgrad für 0 und 180° | |
Detailed Description
Verwendet Motorino,h mbed Library to use a Motorino shield from Joy IT Copyright (c) 2021 Jörg Sturm Released under the MIT License: http://mbed.org/license/mit.
Example:
#include "Kanal.h" Kanal achse(0); //PWM-Kanal 0 wird für den Servo benutzt int main() { while(1) { achse.go(180,1000); //180° in 1000ms while (achse.isBusy(); //warte solange beschäftigt } }
Definition at line 21 of file Kanal.h.
Constructor & Destructor Documentation
| Kanal | ( | int | nr ) |
Member Function Documentation
| void go | ( | float | w, |
| int | zeit | ||
| ) |
Generated on Mon Sep 5 2022 02:15:19 by
1.7.2