src/eric7/MicroPython/EthernetDialogs/WiznetUtilities.py

branch
eric7
changeset 10330
5ea038882dd6
parent 9885
05cbf70e8f10
child 10439
21c28b0f9e41
equal deleted inserted replaced
10329:a389b06170d2 10330:5ea038882dd6
13 Function to get the WIZnet 5x00 initialization code for MicroPython. 13 Function to get the WIZnet 5x00 initialization code for MicroPython.
14 14
15 @return string containing the code to initialize the WIZnet 5x00 ethernet interface 15 @return string containing the code to initialize the WIZnet 5x00 ethernet interface
16 @rtype str 16 @rtype str
17 """ 17 """
18 return """ 18 return """def w5x00_init():
19 def w5x00_init():
20 global nic 19 global nic
21 20
22 try: 21 try:
23 nic 22 nic
24 except NameError: 23 except NameError:
38 Function to get the WIZnet 5x00 initialization code for CircuitPython. 37 Function to get the WIZnet 5x00 initialization code for CircuitPython.
39 38
40 @return string containing the code to initialize the WIZnet 5x00 ethernet interface 39 @return string containing the code to initialize the WIZnet 5x00 ethernet interface
41 @rtype str 40 @rtype str
42 """ 41 """
43 return """ 42 return """def w5x00_init():
44 def w5x00_init():
45 global nic 43 global nic
46 44
47 try: 45 try:
48 nic 46 nic
49 except NameError: 47 except NameError:

eric ide

mercurial