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/07 10:40] Ivo Blöchliger [Interface] |
lehrkraefte:blc:informatik:glf20:ivobuttons [2020/12/07 11:03] Ivo Blöchliger [Beispiele] |
||
---|---|---|---|
Line 15: | Line 15: | ||
* '' | * '' | ||
- | <WRAP info 30%> | + | <WRAP info 40%> |
**Anordnung und Werte der Knöpfe** | **Anordnung und Werte der Knöpfe** | ||
|IVO_L1=1| | |IVO_L1=1| | ||
Line 37: | 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 107: | 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() | ||
+ | |||
+ | </ | ||
+ | </ |