This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from PyQt5 import QtWidgets | |
#matplo_realtime_ui.pyの読み込み | |
from matplo_realtime_ui import Ui_Form | |
#以下7~12はpyqt上でmatlaboを動かすのに必要なライブラリ | |
import matplotlib | |
matplotlib.use('Qt5Agg') | |
from PyQt5 import QtCore, QtWidgets | |
from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# Form implementation generated from reading ui file 'matplo_realtime.ui' | |
# | |
# Created by: PyQt5 UI code generator 5.11.3 | |
# | |
# WARNING! All changes made in this file will be lost! | |
from PyQt5 import QtCore, QtGui, QtWidgets |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from PyQt5 import QtWidgets | |
from matplo_ui import Ui_Form | |
#below import libraries about matplotlib runing on pyqt5 | |
import matplotlib | |
#Make sure that we are using QT5 | |
matplotlib.use('Qt5Agg') | |
from PyQt5 import QtCore, QtWidgets | |
from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# Form implementation generated from reading ui file 'matplo.ui' | |
# | |
# Created by: PyQt5 UI code generator 5.11.3 | |
# | |
# WARNING! All changes made in this file will be lost! | |
from PyQt5 import QtCore, QtGui, QtWidgets |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# initialize GPIO | |
GPIO.setwarnings(False) | |
GPIO.setmode(GPIO.BCM) | |
GPIO.cleanup() | |
# read data using pin 14 | |
instance = dht11.DHT11(pin=14) | |
while True: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> | |
<script src="jquery.qrcode.js"></script> | |
<script src="qrcode.js"></script> | |
<link href="css/style.css" rel="stylesheet"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<script> | |
$(function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
header { | |
background-color: #EAE14E; | |
height:50px; | |
margin-top: 0; | |
} | |
#title { | |
margin-top:0; | |
} | |
body { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<link href="css/style.css" rel="stylesheet"> | |
<title>QR code generator</title> | |
</head> | |
<body> | |
<header> | |
<h1>QR code generator</h1> | |
</header> | |
<div id="wrap"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
header { | |
background-color: #EAE14E; | |
height:50px; | |
margin-top: 0; | |
} | |
body { | |
margin: 0; | |
background-color: #f5f5f5; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scal=1"> | |
<link href="css/style.css" rel="stylesheet"> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> | |
<script> | |
$(function(){ | |
$("input[type='file']").on('change',function(){ |