68
The program provided in Figure 6.15 is not an efficient method for programming motor controls. The
next program, shown below in Figure 6.16 is similar to the previous program except now it uses function
calls. Using function calls makes the program compact. You can make function calls as many time as you
need without rewriting the same code. Test out the new program and try using function calls in future
codes.
Figure 6.16
Содержание Pi-Bot v2.00
Страница 67: ...67 Figure 6 15 ...
Страница 78: ...78 UltraSonicSensorTestwithLED Program ...
Страница 80: ...80 ObstacleAvoidance Program ...
Страница 82: ...82 ObstacleAvoidancewithLED Program ...
Страница 83: ...83 ObstacleAvoidancewithLED Program CONTINUED ...
Страница 90: ...90 Download and run the following program LineFollowing Program ...
Страница 91: ...91 LineFollowing Program CONTINUED ...
Страница 94: ...94 AdvancedLineFollowing Program CONTINUED ...
Страница 95: ...95 AdvancedLineFollowing Program CONTINUED ...
Страница 96: ...96 AdvancedLineFollowing Program CONTINUED ...
Страница 110: ...Appendix B Complete Pi Bot Wiring Schematic ...