[修改] 增加包 Pioneer600
This commit is contained in:
7
main.py
7
main.py
@ -3,8 +3,10 @@ import sys
|
||||
import time
|
||||
import RPi.GPIO as GPIO
|
||||
import spidev as SPI
|
||||
sys.path.append(os.path.join(os.path.dirname(__file__),'Led'))
|
||||
sys.path.append(os.path.join(os.path.dirname(__file__),'Oled'))
|
||||
import SSD1306
|
||||
import Pioneer600.Led.LED as LED
|
||||
import Pioneer600.Oled.SSD1306 as SSD1306
|
||||
|
||||
from PIL import Image,ImageDraw,ImageFont
|
||||
|
||||
@ -19,6 +21,9 @@ LED_GPIO_RED = 26
|
||||
# 128x64 display with hardware SPI:
|
||||
disp = SSD1306.SSD1306(OLED_GPIO_RST, OLED_GPIO_DC, SPI.SpiDev(OLED_SPI_BUS, OLED_SPI_CS))
|
||||
|
||||
# 128x64 display with hardware SPI:
|
||||
led = LED.LED(LED_GPIO_RED)
|
||||
|
||||
def main():
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user