(self)
| 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 | |
| 53 | example = SX1276Example() |
| 54 | example.run() |
no test coverage detected