Giter VIP home page Giter VIP logo

adahil's Introduction

启用树莓派串口设备

参考连接: https://www.raspberrypi.com/documentation/computers/configuration.html#configure-uarts

对于树莓派5,要启用经典位置的串口需要在config.txt中添加以下配置 dtoverlay=uart0-pi5 uart0对应linux下的/dev/ttyAMA0,GPIO14和GPIO15。而默认的/dev/ttyAMA10是树莓派5主板上的专用串口。 不同的串口设备的默认GPIO号可以参考:https://github.com/raspberrypi/linux/blob/rpi-6.1.y/arch/arm/boot/dts/overlays/README

同时需要在/boot/firmware/cmdline.txt删除串口终端部分的内容(暂时不确定该串口终端是否对应主板上的专用串口)

运行dtoverlay -a查看系统可用的串口设备

uart0
uart0-pi5
uart1
uart1-pi5
uart2
uart2-pi5
uart3
uart3-pi5
uart4
uart4-pi5
uart5

启用树莓派的spi设备

参考连接: https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#spi-overview

dtparam=spi=on
dtoverlay=spi0-2cs
dtoverlay=spi1-2cs

adahil's People

Contributors

kcx064 avatar

Watchers

Lucian avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.