Modifications

Sauter à la navigation Sauter à la recherche
1 octet supprimé ,  24 février 2015 à 11:52
Ligne 43 : Ligne 43 :  
You can pass any function (that takes zero arguments) to the switch callback. Above we used the {{fname|lambda}} feature of Python to create an anonymous function on the fly. But we could equally do:
 
You can pass any function (that takes zero arguments) to the switch callback. Above we used the {{fname|lambda}} feature of Python to create an anonymous function on the fly. But we could equally do:
   −
  </nowiki>>>> def f():
+
  <nowiki>>>> def f():
 
...  pyb.LED(1).toggle()
 
...  pyb.LED(1).toggle()
 
...
 
...
29 836

modifications

Menu de navigation