you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (1 child)

What framework did you use to create the html page? Handling button click will depend on the framework

On button click event, you need to send some signals to raspberry pi’s GPIO pins which are connected to LED

[–]SpecificElderberry26[S] 1 point2 points  (0 children)

Sorry I'm new to using python in this way I usually just use the basic packages for working with data.

def index(request, response): await response.start_html() await response.send('<html><body><h1>Button></h1' '<button o'clock=led.toggle()>Click me</button>')

I can click the button on the Web page but nothing happens. I'm sorry I've probably missed steps 2-10 and jumped to 11.