Added Rock64 class to epdconfig.py
This commit is contained in:
parent
8ed1b4696c
commit
4c89467818
1 changed files with 17 additions and 0 deletions
|
|
@ -33,6 +33,23 @@ import sys
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
|
||||||
|
class Rock64:
|
||||||
|
RST_PIN = 17
|
||||||
|
DC_PIN = 25
|
||||||
|
CS_PIN = 8
|
||||||
|
BUSY_PIN = 24
|
||||||
|
|
||||||
|
def __init__(self):
|
||||||
|
import spidev
|
||||||
|
import R64.GPIO as GPIO
|
||||||
|
|
||||||
|
self.GPIO = GPIO
|
||||||
|
self.SPI = spidev.SpiDev(32766, 1)
|
||||||
|
|
||||||
|
def digital_write(self, pin, value):
|
||||||
|
self.GPIO.output(pin, value)
|
||||||
|
|
||||||
|
|
||||||
class RaspberryPi:
|
class RaspberryPi:
|
||||||
# Pin definition
|
# Pin definition
|
||||||
RST_PIN = 17
|
RST_PIN = 17
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue