| Electronic Components Datasheet Search |
|
UM0715 Datasheet(PDF) 21 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0715 Datasheet(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 |
|
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |