According to the researches I've done, I expected to be able to call functions from outside file into my script like this:
Code: Select all
from OLEDformes import *
....
...
#and call my functions (from OLEDformes.py file like this:
fillLozg(AffGrd, 80, 33, 15, 1)
fillTrgl(AffGrd, 20, 43, 18, 1)
And have simple function defined in the called file like:
Code: Select all
def fillLozg:
blabla
def fillTrgl:
blabla
The return message is something like « such function is not defined. »
Is it a difference between Python and MicroPython or have I did something wrong ?
Thanks