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.QtWidgets import QApplication, QWidget, QListWidget, QVBoxLayout, QLabel, QPushButton, QListWidgetItem, \ | |
QHBoxLayout | |
class CustomQWidget(QWidget): | |
def __init__(self, parent=None): | |
super(CustomQWidget, self).__init__(parent) | |
label = QLabel("I am a custom widget") |
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
#!/usr/bin/env python3 | |
import smbus as smbus | |
import RPi.GPIO as GPIO | |
import time | |
DEV_ADDR = 0x48 | |
FR_LED_PIN = 15 | |
def LED_on(): | |
GPIO.output(15, 1) # LED on |