def do_GET(self):
with open('index.html', 'rb') as file:
html = file.read()
self.do_HEAD()
self.wfile.write(html)
I now need to adapt the HTML-Python communication so that my HTML actually interacts with the GPIO. My main issues are:
I suck at Python (big time) My buttons are SVGs that were previously used to trigger JS functions using the onmousedown and onmouseup events (but JS doesn't work so...) I need to GPIO to be equal to 1 when the button is pressed and 0 when released Have I mentioned that I suck at Python? Jokes aside, here's a sample of my HTML:
`=======
`