mbed robotracer for education.
Robotracer (line follower robot ) using stepper motor.
/media/uploads/hayama/mbedrobotracer-manual-english.pdf
/media/uploads/hayama/mbedrobotracer-manual-japanese.pdf
/media/uploads/hayama/eagle-design-robotracer.zip
movie -> https://www.youtube.com/watch?v=INwun8gSds4
(for competition->) https://www.youtube.com/watch?v=l_gP2pUt4w0
mbed/pwmout_api.h@0:da22b0b4395a, 2013-06-19 (annotated)
- Committer:
- hayama
- Date:
- Wed Jun 19 10:00:41 2013 +0000
- Revision:
- 0:da22b0b4395a
mbed robotracer for education ver 1.0
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
hayama | 0:da22b0b4395a | 1 | /* mbed Microcontroller Library |
hayama | 0:da22b0b4395a | 2 | * Copyright (c) 2006-2013 ARM Limited |
hayama | 0:da22b0b4395a | 3 | * |
hayama | 0:da22b0b4395a | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
hayama | 0:da22b0b4395a | 5 | * you may not use this file except in compliance with the License. |
hayama | 0:da22b0b4395a | 6 | * You may obtain a copy of the License at |
hayama | 0:da22b0b4395a | 7 | * |
hayama | 0:da22b0b4395a | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
hayama | 0:da22b0b4395a | 9 | * |
hayama | 0:da22b0b4395a | 10 | * Unless required by applicable law or agreed to in writing, software |
hayama | 0:da22b0b4395a | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
hayama | 0:da22b0b4395a | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
hayama | 0:da22b0b4395a | 13 | * See the License for the specific language governing permissions and |
hayama | 0:da22b0b4395a | 14 | * limitations under the License. |
hayama | 0:da22b0b4395a | 15 | */ |
hayama | 0:da22b0b4395a | 16 | #ifndef MBED_PWMOUT_API_H |
hayama | 0:da22b0b4395a | 17 | #define MBED_PWMOUT_API_H |
hayama | 0:da22b0b4395a | 18 | |
hayama | 0:da22b0b4395a | 19 | #include "device.h" |
hayama | 0:da22b0b4395a | 20 | |
hayama | 0:da22b0b4395a | 21 | #if DEVICE_PWMOUT |
hayama | 0:da22b0b4395a | 22 | |
hayama | 0:da22b0b4395a | 23 | #ifdef __cplusplus |
hayama | 0:da22b0b4395a | 24 | extern "C" { |
hayama | 0:da22b0b4395a | 25 | #endif |
hayama | 0:da22b0b4395a | 26 | |
hayama | 0:da22b0b4395a | 27 | typedef struct pwmout_s pwmout_t; |
hayama | 0:da22b0b4395a | 28 | |
hayama | 0:da22b0b4395a | 29 | void pwmout_init (pwmout_t* obj, PinName pin); |
hayama | 0:da22b0b4395a | 30 | void pwmout_free (pwmout_t* obj); |
hayama | 0:da22b0b4395a | 31 | |
hayama | 0:da22b0b4395a | 32 | void pwmout_write (pwmout_t* obj, float percent); |
hayama | 0:da22b0b4395a | 33 | float pwmout_read (pwmout_t* obj); |
hayama | 0:da22b0b4395a | 34 | |
hayama | 0:da22b0b4395a | 35 | void pwmout_period (pwmout_t* obj, float seconds); |
hayama | 0:da22b0b4395a | 36 | void pwmout_period_ms (pwmout_t* obj, int ms); |
hayama | 0:da22b0b4395a | 37 | void pwmout_period_us (pwmout_t* obj, int us); |
hayama | 0:da22b0b4395a | 38 | |
hayama | 0:da22b0b4395a | 39 | void pwmout_pulsewidth (pwmout_t* obj, float seconds); |
hayama | 0:da22b0b4395a | 40 | void pwmout_pulsewidth_ms(pwmout_t* obj, int ms); |
hayama | 0:da22b0b4395a | 41 | void pwmout_pulsewidth_us(pwmout_t* obj, int us); |
hayama | 0:da22b0b4395a | 42 | |
hayama | 0:da22b0b4395a | 43 | #ifdef __cplusplus |
hayama | 0:da22b0b4395a | 44 | } |
hayama | 0:da22b0b4395a | 45 | #endif |
hayama | 0:da22b0b4395a | 46 | |
hayama | 0:da22b0b4395a | 47 | #endif |
hayama | 0:da22b0b4395a | 48 | |
hayama | 0:da22b0b4395a | 49 | #endif |