一:树莓派引脚输出高低电平问题
问题描述:在用wiringPi的库函数编写led的点灯程序的时候,发现树莓派的的管脚输出高电平一段时间后,就会自动跳到低电平状态,似乎树莓派的引脚不受程序的控制。
解决方案:可能是环境出了问题,重新烧写下系统的镜像就可以了(有过惨痛教训,倒腾了一下午)。
二:解决ssh不能登录的问题
有时候想从开发板中考文件出来,发现ssh无法登录。
解决方法:
1,sudo vim /etc/ssh/sshd_config
在文件末尾添加
Ciphers aes128-cbc,aes192-cbc,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr,3des-cbc,arcfour128,arcfour256,arcfour,blowfish-cbc,cast128-cbc
MACs hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-sha1-96,hmac-md5-96
KexAlgorithms diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group-exchange-sha256,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp