Difference between revisions of "File:RPI open spi1.png"
From Waveshare Wiki
Line 9: | Line 9: | ||
</pre> | </pre> | ||
[[File:RPI_open_spi1.png|900px]]<br /> | [[File:RPI_open_spi1.png|900px]]<br /> | ||
+ | *Interface selection: | ||
+ | <pre> | ||
+ | #define USE_SPI_4W 1 | ||
+ | #define USE_IIC 0 | ||
+ | Note:Switch SPI/I2C directly modified here | ||
+ | </pre> |
Revision as of 08:08, 17 January 2022
C codes
A brief analysis of underlying interfaces
We have carried out the low-level encapsulation, if you need to know the internal implementation can go to the corresponding directory to check ,for the reason that the hardware platform and the internal implementation are different
We can open DEV_Config.c(.h) to see definitions,which in the catalogue RaspberryPi\c\lib\Config
1.There are three ways for C to drive:BCM2835 library, WiringPi library and Dev library respectively 2.We use Dev library by default. If you need to use BCM2835 or WiringPi to drive the RaspberryPi\c\Makefile, open RaspberryPi\c\Makefile and modify lines 13-15 as follows:
- Interface selection:
#define USE_SPI_4W 1 #define USE_IIC 0 Note:Switch SPI/I2C directly modified here
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 08:01, 17 January 2022 | 800 × 341 (117 KB) | Eng49 (talk | contribs) |
You cannot overwrite this file.
File usage
The following 48 pages use this file:
- 0.49inch OLED Module
- 0.85inch LCD Module
- 0.91inch OLED Module
- 0.95inch RGB OLED (A)
- 0.95inch RGB OLED (B)
- 0.96inch LCD Module
- 0.96inch OLED (A)
- 0.96inch OLED (B)
- 0.96inch OLED Module
- 0.96inch RGB OLED Module
- 1.14inch LCD Module
- 1.27inch RGB OLED Module
- 1.28inch LCD Module
- 1.32inch OLED Module
- 1.3inch LCD Module
- 1.3inch OLED (A)
- 1.3inch OLED (B)
- 1.3inch OLED Module (C)
- 1.47inch LCD Module
- 1.51inch Transparent OLED
- 1.54inch LCD Module
- 1.54inch OLED Module
- 1.5inch LCD Module
- 1.5inch OLED Module
- 1.5inch OLED Module (B)
- 1.5inch RGB OLED Module
- 1.83inch LCD Module
- 1.8inch LCD Module
- 2.42inch OLED Module
- 2.4inch LCD Module
- 2inch LCD Module
- OLED/LCD HAT (A)
- Temp wiki01
- File:RPI open spi1.png
- Template:0.49 OLED RPI Guides
- Template:0.91inch-OLED-Module-RaspberryPi-Guides
- Template:0.95inch RGB OLED RPi
- Template:0.96inch OLED rpi
- Template:1.27inch RGB OLED Module RPI
- Template:1.32inch OLED Module RPI
- Template:1.3inch OLED RPi
- Template:1in54-LCD-Module-RaspberryPi-Guides
- Template:2inch-LCD-Module-RaspberryPi-Guides
- Template:LCD Module FBCP Transplant
- Template:LCD Module RPi
- Template:OLED LCD for rpiuse
- Template:OLED RPI Tutorial
- Template:OLED rpi code analyze