| 전자부품 데이터시트 검색엔진 |
|
UM0715 데이터시트(PDF) 21 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0715 데이터시트(HTML) 21 Page - STMicroelectronics |
|
21 / 24 page ![]() UM0715 Script examples Doc ID 15798 Rev 2 21/24 7 Script examples 7.1 Hello world The following example prints the string “Hello world” continually. To execute this test, copy and paste the following code in a txt file and load it how already described. 10 PRINT "Hello world" 20 GOTO 10 7.2 FOR cicle The following example prints the even values of the variable A. To execute this test, copy and paste the following code in a txt file and load it how already described. 10 FOR A=0 TO 100 STEP 2 20 PRINT A 30 NEXT A 7.3 Leds blinking The following example blinks the leds L1, L2 and L3 sequentially simulating a binary counter. From one configuration and another is inserted a delay of 500ms. To execute this test, copy and paste the following code in a txt file and load it how already described. 10 GPIOI 190 2 15 GPIOI 191 2 20 GPIOI 193 2 30 GPIOH 190 40 GPIOH 193 45 GPIOH 191 48 DELAY 500000 50 GPIOL 190 60 GPIOH 193 70 GPIOH 191 80 DELAY 500000 90 GPIOH 190 100 GPIOL 193 110 GPIOH 191 120 DELAY 500000 130 GPIOL 190 140 GPIOL 193 150 GPIOH 191 |
|
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |