Dependencies: mbed
Fork of Turrett_Project by
main.cpp@1:c9b199994bc2, 2016-03-01 (annotated)
- Committer:
- taylormooers
- Date:
- Tue Mar 01 16:14:07 2016 +0000
- Revision:
- 1:c9b199994bc2
- Parent:
- 0:d9acaeb37aed
Function to fire shots
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Ty | 0:d9acaeb37aed | 1 | #include "mbed.h" |
taylormooers | 1:c9b199994bc2 | 2 | #include "Nerf_function.h" |
Ty | 0:d9acaeb37aed | 3 | |
taylormooers | 1:c9b199994bc2 | 4 | PinName spinner(p20); |
taylormooers | 1:c9b199994bc2 | 5 | PinName trigger(p19); |
taylormooers | 1:c9b199994bc2 | 6 | |
Ty | 0:d9acaeb37aed | 7 | int main() |
taylormooers | 1:c9b199994bc2 | 8 | { int shots = 3; |
taylormooers | 1:c9b199994bc2 | 9 | |
taylormooers | 1:c9b199994bc2 | 10 | fire_shots(trigger,spinner,shots); // Source code is in Nerf_function.h |
taylormooers | 1:c9b199994bc2 | 11 | |
taylormooers | 1:c9b199994bc2 | 12 | while(1); |
taylormooers | 1:c9b199994bc2 | 13 | } |
taylormooers | 1:c9b199994bc2 | 14 |