Skip to content

Instantly share code, notes, and snippets.

View LED_blink_by_ArtyS7.v
View matplolib_realtime_gui.py
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
View matplolib_realtime_ui.py
# -*- 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
View matplo_gui.py
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
View matplo_ui.py
# -*- 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
View dht11_raspberryPI.py
# initialize GPIO
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BCM)
GPIO.cleanup()
# read data using pin 14
instance = dht11.DHT11(pin=14)
while True:
View qrcode.html
<!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() {
View style2.css
header {
background-color: #EAE14E;
height:50px;
margin-top: 0;
}
#title {
margin-top:0;
}
body {
View index2.html
<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">
View style.css
header {
background-color: #EAE14E;
height:50px;
margin-top: 0;
}
body {
margin: 0;
background-color: #f5f5f5;
}
You can’t perform that action at this time.