User Tools

Site Tools


module:micropython:esp32checkmath

This is an old revision of the document!


MicroPython: Esp32CheckMath

Open Hard- & Software [ DokuWiki WebSites MediaWiki NextCloud ]

Beispiel für die Einbindung einer uP-Library Math.py :

#
def Add(a, b):
	return a + b
#
def Sub(a, b):
	return a - b
#

Aufrufendes Programm Esp32CheckMath.py :

#
import Math as MAT
#
print('3 + 5 = {}'.format(MAT.Add(3, 5)))
#			
 

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

Version

module/micropython/esp32checkmath.1638959474.txt.gz · Last modified: 2021/12/08 12:31 (external edit)