当前位置:网站首页>UART minimalist routine for raspberry PI B
UART minimalist routine for raspberry PI B
2022-04-22 15:10:00 【Charming Sun】
One 、 install WiringPi2-Python
Execute the following command :
sudo apt-get update
sudo apt-get install python-dev python-pip
sudo pip install wiringpi2
Two 、 edit Python Code
Create as follows Serial.py file , And add executable permissions :
#!/usr/bin/env python
import wiringpi
wiringpi.wiringPiSetup()
serial = wiringpi.serialOpen('/dev/ttyAMA0',9600)
wiringpi.serialPuts(serial,'Hello World!')
3、 ... and 、 Connect the hardware and execute the program
Connect the DuPont line according to the pin diagram , And then execute Serial.py Program :

Links to this article :
UART at Raspberry Pi GPIO Pinout
How to install WiringPi2 for Python on the Raspberry Pi
版权声明
本文为[Charming Sun]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204221504282852.html
边栏推荐
- Redis gets all the elements in the list
- 运输层——运输层概述(1)
- 2022年C#发展趋势
- 2022 welder (primary) operation certificate examination question bank and answers
- [*CTF2022]oh_my_lotto_revenge
- SVG系列——3,强大的路径
- rotate an array by k positions clock-wise
- [Mysql] CHAR_LENGTH函数
- [C language] basic concepts of C language
- 琢磨琢磨方法引用以及lambda--白话Lambda和方法引用
猜你喜欢

Face recognition (5) face detection based on mctnn (pytoch)
![【深入理解TcaplusDB技术】读取列表指定位置数据接口说明——[List表]](/img/7b/8c4f1549054ee8c0184495d9e8e378.png)
【深入理解TcaplusDB技术】读取列表指定位置数据接口说明——[List表]

share memory的bank conflict分析

JVM的垃圾回收Serial、Serial Old、Parallel Scavenge、Parallel Old的介绍和STW(Stop The World)

There are Chinese characters in the input parameter, and an error of 500 is reported. There is an internal error in the server

Transport layer UDP protocol

多款无源探头1:1衰减比有什么区别

Love station network keyword mining query tool - batch website keyword mining export software free download

Computer Vision L7 -- Self-supervised Learning

C语言的基本练习(002-1)
随机推荐
【深入理解TcaplusDB技术】更新数据示例代码——[Generic表]
MySQL initialization error
入参有汉字,报错500,服务器内部错误
2022年化工自动化控制仪表考试题库及在线模拟考试
Go language introduction, environment installation, basic structure
【深入理解TcaplusDB技术】异步扫描数据示例代码——[Generic表]
Bootsrap 模态框文字超出处理
Goldfish rhca memoirs: rh358 managing DNS and DNS server -- troubleshooting DNS problems
Watch out for spies! Safeguard national security, you and I guard together
dried food! Reflection on the image migration of targeted confrontation
如何选择电流钳或电流探头
情报研判分析平台建设,情指勤一体化管理系统开发
Analysis on the characteristics of the official game economic model launched by platoffarm
Configure MySQL Cluster with MYCAT (2) -- configure MySQL master-slave replication
2022年危险化学品生产单位安全生产管理人员考试题模拟考试平台操作
2021年漏洞利用状况:已公开的传统漏洞占95%
合并两个有序链表——LeetCode
Android护眼功能,双非本科字节跳动Android面试题分享
百合医疗IPO被终止:实控人黄凯之父黄维郭曾是佛山副市长
攒机笔记二十:改造笔记本电脑(华硕A555L)