MCPcopy Create free account
hub / github.com/antirez/freakwan / run

Method run

example.py:43–51  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

41 self.display.show()
42
43 def run(self):
44 # Other than receiving, every 5 seconds send a packet.
45 while True:
46 payload = "Test "+str(urandom.randint(0,1000000))
47 self.display.fill(0)
48 self.display.text(payload, 0, 0, 1)
49 self.display.show()
50 self.lora.send(payload)
51 time.sleep(5)
52
53example = SX1276Example()
54example.run()

Callers 1

example.pyFile · 0.45

Calls 4

fillMethod · 0.80
textMethod · 0.80
showMethod · 0.80
sendMethod · 0.45

Tested by

no test coverage detected