File tree 1 file changed +30
-0
lines changed
1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change 2
2
import MCP23017
3
3
import time
4
4
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
+
5
35
class Font ():
6
36
"""
7
37
read a .bdf font file
You can’t perform that action at this time.
0 commit comments