树莓派运行角蜂鸟备忘录(初步配置+IIC 1602)

插播广告:我的个人博客:了起的博​​​​​​​

系统又又又被玩坏了,之前也积累些经验。这次把过程整理一下发出来,方便自己也方便大家(下次果然还是做个镜像吧。。。)

用的是角蜂鸟给的镜像。官方用的3B但是我的3B+测试出来也可以使用

所有I2C相关的东西可以不设置因为我主要是要用I2C接LCD1602

可选:超频>修改配置文件(参考https://blog.csdn.net/kxwinxp/article/details/78514024

avoid_warnings=1
arm_freq=1350
core_freq=500
over_voltage=4

1、putty>窗口左侧转换>远程字符集-Use font encoding

(pi,raspberry)>sudo raspi-config >5.InterXXXXXX>使能VNC、I2C

                                                                       >2.NetXXXX>设置wifi

                                                                       >7.AdvancedXXX>A5调整分辨率

                                                                       >8.UpdateXXXX

安装中文输入法>sudo apt-get update>sudo apt-get install scim-pinyin>scim>sudo reboot

I2C(参考来源:https://tutorials-raspberrypi.com/control-a-raspberry-pi-hd44780-lcd-display-via-i2c/) >sudo apt-get install python-smbus i2c-tools>查询I2C地址(sudo i2cdetect -y 1)>

wget -P /home/pi/SungemSDK/examples/python http://tutorials-raspberrypi.de/wget -P /home/pi/SungemSDK/examples/python http://tutorials-raspberrypi.de/wp-content/uploads/scripts/hd44780_i2c.zip unzip hd44780_i2c.zip>解压>修改lcddriver.py里的地址位>测试>
import lcddriver
from time import *
 
lcd = lcddriver.lcd()
lcd.lcd_clear()
 
lcd.lcd_display_string("Tutorials-", 1)
lcd.lcd_display_string("      RaspberryPi.de", 2)
lcd.lcd_display_string("", 3)
lcd.lcd_display_string("HD44780 I2C Tutorial", 4)

配置超级用户密码>sudo passwd root>设置密码

2、VNC viewer

1、配置->设置中文、时区

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值