| 数据搜索系统,热门电子元器件搜索 |
|
DFR0413 数据表(PDF) 7 Page - DFROBOT |
|
|
|||||||||||||||||||||||||||||
DFR0413 数据表(HTML) 7 Page - DFROBOT |
|
7 / 8 page ![]() OLED Driver Connecting the OLED to the Raspberry Pi Because connect the OLED to the Pi's GPIO headers as shown: Product Size Activate SPI Pins The Pi's default SPI and I2C pins are disabled, you must activate them before use. Use a terminal on the Pi connected to another display, or SHH in to the Pi from another PC and run the following command: sudo nano /etc/modprobe.d/raspi-blacklist.conf Find the line "blacklist spi-bcm2708" and place a # before it to comment it out. This will enable the SPI interface on the Pi. If you want you can also find the line "blacklist i2c-bcm2708" and place a # before it to comment it out. This will enable the i2c interface on the Pi. Type ctrl+x and then y to save changes to the configuration file. Reboot your Pi by typing "sudo reboot" in to the command line. When the Pi has rebooted the SPI GPIO pins will be activated. You should see two files in the /dev directory: spidev0.0 spidev0.1 spidev0.0 corresponds to SPI pin 0 spidev0.1 corresponds to SPI pin 1 Use C to Drive the LCD via SPI |
|
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |