Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
lehrkraefte:blc:informatik:glf20:ivobuttons [2020/12/03 13:20] Ivo Blöchliger [Installation auf der OxoCard] |
lehrkraefte:blc:informatik:glf20:ivobuttons [2020/12/07 11:03] Ivo Blöchliger [Beispiele] |
||
---|---|---|---|
Line 5: | Line 5: | ||
==== Interface ==== | ==== Interface ==== | ||
* '' | * '' | ||
- | * '' | + | * '' |
* '' | * '' | ||
* '' | * '' | ||
+ | * '' | ||
* Zeichnungsroutinen: | * Zeichnungsroutinen: | ||
* '' | * '' | ||
* '' | * '' | ||
* '' | * '' | ||
+ | * '' | ||
- | + | <WRAP info 40%> | |
- | + | **Anordnung und Werte der Knöpfe** | |
+ | |IVO_L1=1| | ||
+ | |IVO_L2=2|IVO_L3=4| | ||
+ | </ | ||
===== Verwendung im TigerJython Simulator ===== | ===== Verwendung im TigerJython Simulator ===== | ||
Dazu muss folgende Datei **im gleichen** Ordner gespeichert werden wie Ihre Programmdatei: | Dazu muss folgende Datei **im gleichen** Ordner gespeichert werden wie Ihre Programmdatei: | ||
Line 33: | Line 37: | ||
===== Beispiele ===== | ===== Beispiele ===== | ||
- | <hidden Demo 24 neue Pixel pro Frame, läuft mit 40 fps> | + | <hidden Demo 24 neue Pixel pro Frame, läuft mit 30 fps> |
<code python ivosdemo.py> | <code python ivosdemo.py> | ||
from oxocard import * | from oxocard import * | ||
Line 103: | Line 107: | ||
</ | </ | ||
+ | <hidden 64 neue Pixel pro Bild> | ||
+ | <code python scrolling.py> | ||
+ | from oxocard import * | ||
+ | from ivobuttons import * | ||
+ | |||
+ | for n in range(121): | ||
+ | for y in range(8): | ||
+ | for x in range(8): | ||
+ | if x > y: | ||
+ | fastDot((x+n)%8, | ||
+ | else: | ||
+ | fastDot((x+n)%8, | ||
+ | fastRepaint() | ||
+ | |||
+ | </ | ||
+ | </ |