Skip to content

Commit 33c0597

Browse files
author
Marco Bakera
committed
added todo with information.
Transition to ESP8266.
1 parent 5b87494 commit 33c0597

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

flipdotdisplay.py

+30
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,36 @@
22
import MCP23017
33
import time
44

5+
"""
6+
TODO Anpassen für den ESP8266
7+
http://docs.micropython.org/en/latest/esp8266/esp8266/tutorial/pins.html
8+
http://docs.micropython.org/en/latest/esp8266/library/machine.Pin.html
9+
10+
Aufrufe auf RPi.GPIO müssen umgelenkt werden an die Äquivalente aus dem ESP.
11+
12+
Pin Deklaration:
13+
14+
import machine
15+
pin = machine.Pin(0, machine.Pin.IN, machine.Pin.PULL_UP)
16+
17+
Pin auslesen oder setzen
18+
19+
val = pin.value()
20+
pin.value(1)
21+
22+
http://docs.micropython.org/en/latest/esp8266/esp8266/tutorial/pwm.html
23+
24+
einen PWM-Pin deklarieren
25+
26+
pin0 = machine.Pin(0)
27+
pwm0 = machine.PWM(pin0, freq=1000)
28+
pwm0.duty(512) # zwischen 0 und 1023
29+
# aus
30+
pwm0.deinit()
31+
32+
33+
"""
34+
535
class Font():
636
"""
737
read a .bdf font file

0 commit comments

Comments
 (0)