module:micropython:esp32checkmath
                Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| module:micropython:esp32checkmath [2021/12/08 11:20] – created omdevelop | module:micropython:esp32checkmath [2022/09/13 11:58] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ======  | + | ======  | 
| - | Esp32CheckMath  | + | [[http:// | 
| - |    | + | [ | 
| - |    | + | [[http:// | 
| + | [[http:// | ||
| + | [[http:// | ||
| + | [[http:// | ||
| + | ] | ||
| + | |||
| + | ===== Benutzung ===== | ||
| + | Beispiel für die Einbindung der MicroPython-Library **Math.py**  | ||
| + | <code python> | ||
| + | # | ||
| + | def Add(a, b): | ||
| + | return a + b | ||
| + | # | ||
| + | def Sub(a, b): | ||
| + | return a - b | ||
| + | # | ||
| + | </ | ||
| + | Wichtig: Die Library muss im FileSystem des MicroControllers vorhanden sein! | ||
| + | |||
| + | Aufrufendes Programm **Esp32CheckMath.py** : | ||
| + | <code python> | ||
| + | # | ||
| + | import Math as MAT | ||
| + | # | ||
| + | print(' | ||
| + | print(' | ||
| + | </ | ||
| + | |||
| + | Run-Ausgabe im Terminal: | ||
| + | < | ||
| + | >>> | ||
| + | >>> | ||
| + | 3 + 5 = 8 | ||
| + | 3 - 5 = -2 | ||
| + | ♦♦> | ||
| + | MicroPython  | ||
| + | Type " | ||
| + | >>> | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== Version ===== | ||
| + | |||
| + | {{:module: | ||
| + | {{: | ||
| + | |||
| + | ===== ===== | ||
| + | |||
| + | |||
| + | ----- | ||
| + | [[http:// | ||
| + | [ | ||
| + | [[http:// | ||
| + | [[http:// | ||
| + | [[http:// | ||
| + | [[http:// | ||
| + | ] | ||
module/micropython/esp32checkmath.1638958822.txt.gz · Last modified: 2021/12/08 12:20 (external edit)