简体   繁体   English

Raspberry Pi Tomcat开关和LED指示灯在页面上

[英]Raspberry Pi Tomcat Switch amd LED on page

I new to tomcat and Java, looking for example of a switch and LED on webpage. 我是tomcat和Java的新手,在网页上寻找开关和LED的示例。

I have hardware that has a button and Led. 我有带按钮和Led的硬件。 push button and when done LED goes off or flashes if errors. 按钮,完成后LED熄灭,如果出现错误,则闪烁。

I would like to trigger remote and see LED. 我想触发远程并查看LED。

I found this http://iqjar.com/jar/controlling-the-raspberry-pis-gpio-pins-from-a-web-browser/ and its a start... how do I read the input from hardware LED and show on page. 我发现了这个http://iqjar.com/jar/controlling-the-raspberry-pis-gpio-pins-from-a-web-browser/及其开始...如何从硬件LED读取输入显示在页面上。

The webiopi framework will allow you to control the GPIO pins from your browser. webiopi框架将允许您从浏览器控制GPIO引脚。 webiopi is an Internet of Things (IOT) platform targeting the Raspberry PI. webiopi是针对Raspberry PI 的物联网(IOT)平台。

You can control the GPIO pins via the browser 您可以通过浏览器控制GPIO引脚

GPIO控制 By clicking on a pin to set the status. 通过单击大头针来设置状态。

There is a tutorial here and some more discussion here and here and even a video 有一个教程在这里和一些更多的讨论在这里这里甚至视频

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM