DEKI/ENGINE 문서
deki-spi 0.20.2
Deki 패키지 레퍼런스
deki-spi

SPI 버스와 그 위의 장치. 부팅 단계에서 버스를 한 번 시작하면 디스플레이, SD 카드, 무선 장치가 이를 공유합니다.

저장소: github.com/dekiengine/deki-spi · 최신 릴리스: 0.20.0 · 엔진 0.20.0 이상 필요

DekiEditor --packages-add deki-spi <project> 또는 패키지 관리자로 설치합니다. 엔진 자체의 컴포넌트와 C++ API는 Deki 문서에 있습니다.

에디터에는 SPI(으)로 표시됩니다.

컴포넌트

컴포넌트 카테고리 설명
SPIBusComponent 시스템 부팅할 때 SPI 버스 하나를 시작합니다. 그 버스의 모든 장치(디스플레이, SD 카드, 무선 모듈)가 이를 공유합니다.

컴포넌트 레퍼런스

SPIBusComponent

부팅할 때 SPI 버스 하나를 시작합니다. 그 버스의 모든 장치(디스플레이, SD 카드, 무선 모듈)가 이를 공유합니다.

인스펙터 이름: SPI 버스 컴포넌트 · 카테고리: 시스템 · 유형: DekiSpi::SPIBusComponent

속성 유형 기본값 제약 설명
spiHost int32 1 0~3 칩의 어떤 SPI 컨트롤러를 사용할지 플랫폼의 번호로 지정합니다. ESP32-S3에서는 1 = SPI2, 2 = SPI3입니다.
sclkPin int32 -1 -1~48 클럭(SCK)용 GPIO입니다. 이 버스의 모든 장치가 공유합니다.
mosiPin int32 -1 -1~48 데이터 출력(MOSI)용 GPIO입니다. 쿼드 버스에서는 IO0입니다.
misoPin int32 -1 -1~48 데이터 입력(MISO)용 GPIO입니다. 쿼드 버스에서는 IO1입니다. 버스에서 아무것도 읽지 않으면 -1입니다.
io2Pin int32 -1 -1~48 쿼드 버스용 IO2입니다 (QSPI로 연결된 AMOLED 패널 등). 일반 SPI 버스에서는 -1입니다.
io3Pin int32 -1 -1~48 쿼드 버스용 IO3입니다. 일반 SPI 버스에서는 -1입니다.
maxTransferBytes int32 32768 64~262144 버스가 한 번에 처리하는 가장 긴 전송입니다. 디스플레이는 이 길이의 전송으로 픽셀을 보내므로, 디스플레이가 있는 버스에서는 칩의 한도(ESP32-S3에서는 32768)로 두십시오.

변경 내역

변경 내역은 영어로 되어 있습니다.

0.20.0

Changed

  • minEngine 0.20.0: built against engine 0.20.0. A build of this package from before does not load and is rebuilt.

Added

  • The package: IDekiSPIBus and IDekiSPIDevice, the DekiSPI registry the platform's factory and the buses are found in, and SPIBusComponent, which starts a bus from the boot scene. A transfer has optional command and address phases, one, two or four data lines, a data/command pin level and a chip select that can stay asserted into the next transfer; long writes are queued for DMA and waited for. A queued transfer of four bytes or less is copied, so a command can be queued from the stack.
  • DeviceConfig::readClockHz: a device read at a slower clock than it is written (a display written at 80 MHz and read back at 10), and DeviceConfig::threeWire, for a device that answers on MOSI.

이전 릴리스: CHANGELOG.md


패키지의 리플렉션 데이터에서 생성했습니다(엔진 0.20.2). 속성 이름은 씬 파일에서 쓰는 키입니다. 이름을 바꿔도 별칭이 유지됩니다(호환성).