User Tools

Site Tools


module:micropython:esp32checkledsystem

This is an old revision of the document!


MicroPython: Esp32CheckLedSystem

Benutzung

Beispiel für die Einbindung der MicroPython-Library LedSystem.py :

 

Wichtig: Die Library LedSystem.py muss im FileSystem des MicroControllers vorhanden sein!

Aufrufendes Programm Esp32CheckLedSystem.py :

#
import time
#
import LedSystem as LS
#
LedSystem = LS.CLedSystem(2)
LedSystem.Open()
for I in range(0, 100):
  LedSystem.On()
  time.sleep_ms(100)
  LedSystem.Off()
  time.sleep_ms(100)
LedSystem.Close()	

Run-Ausgabe im Terminal:

>>> Running ..\Esp32CheckMath.py
>>> 
3 + 5 = 8
3 - 5 = -2
♦♦>
MicroPython v1.17 on 2021-09-02; ESP32 module with ESP32
Type "help()" for more information.
>>>

Version

module/micropython/esp32checkledsystem.1638961858.txt.gz · Last modified: 2021/12/08 13:10 (external edit)