WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Micropython + webserver + GPIO  (Read 2837 times)

Offline gavinmc42

  • Sr. Member
  • ****
  • Posts: 301
Micropython + webserver + GPIO
« on: September 11, 2015, 01:23:35 AM »
Got the example Micropython webserver going.
Figured out the HTML code goes in the CONTENT comment section.

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>RF cage stepper motor controller</title>
</head>
<body>
<br>
<button onclick="Stepforwards()" id=stepc >Step Clockwise</button>
<button onclick="Stepbackwards()" id=stepa  >Step Anticlockwise</button>
</body>

Now how do I get the buttons to do stuff?
Turn GPIO on/off would be cool via file writing to /sys/class/gpio/gpioxx/value.
Using no libraries?





Offline vinikon

  • Newbie
  • *
  • Posts: 43
Re: Micropython + webserver + GPIO
« Reply #1 on: February 21, 2018, 06:01:45 AM »
Did you manage to control GPIO via WEB interface?
An inspired user of TinyCore...