![Phytec nanoModul-164 Скачать руководство пользователя страница 56](http://html.mh-extra.com/html/phytec/nanomodul-164/nanomodul-164_quick-start-instructions_1554144056.webp)
nanoMODUL-164 QuickStart Instructions
52
PHYTEC Meßtechnik GmbH 2003 L-379e_4
3.3
Modifying the Source Code
•
Double click on blinky2.c to open it in the source code editor.
•
Locate the following code section. Modify the section shown below
(the values shown in bold and italic) from the original (150,000)
counts to the indicated values:
while (1) { /* loop forever */
P8_0 = 0; /* output to LED port */
for (i=0; i<
225000; i++) { /* delay for 150000 counts */
wait (); /* call wait function */
}
P8_0 = 1; /* output to LED port */
for (i=0; i<
75000; i++) { /* delay for 150000 counts */
wait (); /* call wait function */
}
}
This will change the on/off ratio of the blinky program.
Содержание nanoModul-164
Страница 48: ...nanoMODUL 164 QuickStart Instructions 44 PHYTEC Meßtechnik GmbH 2003 L 379e_4 ...
Страница 72: ...nanoMODUL 164 QuickStart Instructions 68 PHYTEC Meßtechnik GmbH 2003 L 379e_4 ...
Страница 84: ...nanoMODUL 164 QuickStart Instructions 80 PHYTEC Meßtechnik GmbH 2003 L 379e_4 ...
Страница 92: ...nanoMODUL 164 QuickStart Instructions 88 PHYTEC Meßtechnik GmbH 2003 L 379e_4 ...
Страница 96: ...Published by PHYTEC Meßtechnik GmbH 2003 Ordering No L 379e_4 Printed in Germany ...