ASURO Library
2.80
Hauptseite
Dateien
Auflistung der Dateien
Datei-Elemente
lib
motor_low.c
gehe zur Dokumentation dieser Datei
1
/****************************************************************************/
31
/*****************************************************************************
32
* *
33
* This program is free software; you can redistribute it and/or modify *
34
* it under the terms of the GNU General Public License as published by *
35
* the Free Software Foundation; either version 2 of the License, or *
36
* any later version. *
37
* *
38
*****************************************************************************/
39
#include "
asuro.h
"
40
41
42
43
/****************************************************************************/
83
void
MotorSpeed
(
84
unsigned
char
left_speed,
85
unsigned
char
right_speed)
86
{
87
OCR1A = left_speed;
88
OCR1B = right_speed;
89
}
90
91
92
93
/****************************************************************************/
126
void
MotorDir
(
127
unsigned
char
left_dir,
128
unsigned
char
right_dir)
129
{
130
PORTD = (PORTD &~ ((1 << PD4) | (1 << PD5))) | left_dir;
131
PORTB = (PORTB &~ ((1 << PB4) | (1 << PB5))) | right_dir;
132
}
Erzeugt am Mit Nov 27 2013 22:55:08 für ASURO Library von
1.8.2