[修改] 增加包 Pioneer600

This commit is contained in:
2023-06-29 23:54:51 +08:00
parent f42618de4e
commit b656f348f8
14 changed files with 33 additions and 31 deletions

View File

@ -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: