Giter VIP home page Giter VIP logo

deathsilence.github.com's People

Contributors

temptationx avatar

Watchers

 avatar

deathsilence.github.com's Issues

树莓派 改开机Logo 隐藏开机日志

网上关于隐藏开机日志的教程多是基于Wheezy 的,但是在Jessie下不能全部隐藏。经过尝试后终于找到完全隐藏的方法。

一、隐藏开机自检彩虹画面

sudo nano /boot/config.txt
在最后加上 disable_splash=1

二、隐藏开机日志

sudo nano /boot/cmdline.txt
在最后加上
logo.nologo loglevel=0 quiet splash fsck.mode=skip vt.global_cursor_default=0
sudo systemctl mask [email protected]

三、显示Logo
sudo apt-get install plymouth plymouth-themes
sudo apt-get install pix-plym-splash
cd /usr/share/plymouth/themes/
mkdir mytheme & cd mytheme
sudo nano mytheme.plymouth

输入一下内容:

[Plymouth Theme]
Name=MyTheme
Description=MyTheme
ModuleName=script

[script]
ImageDir=/usr/share/plymouth/themes/mytheme
ScriptFile=/usr/share/plymouth/themes/mytheme/mytheme.script

然后:
sudo nano mytheme.script

输入一下内容:

flower_image = Image("icon.png");

screen_ratio = Window.GetHeight() / Window.GetWidth();
flower_image_ratio = flower_image.GetHeight() / flower_image.GetWidth();

if (screen_ratio > flower_image_ratio)
  {  # Screen ratio is taller than image ratio, we will match the screen height
     scale_factor =  Window.GetHeight() / flower_image.GetHeight();
  }
else
  {  # Screen ratio is wider than image ratio, we will match the screen width
     scale_factor =  Window.GetWidth() / flower_image.GetWidth();
  }

scaled_flower_image = flower_image.Scale(flower_image.GetWidth()  * scale_factor*256/1920,
                                         flower_image.GetHeight() * scale_factor*256/2100);
flower_sprite = Sprite(scaled_flower_image); # Create the a sprite using the scaled image

flower_sprite.SetX(Window.GetWidth()  / 2 - scaled_flower_image.GetWidth () / 2); # Place in the centre
flower_sprite.SetY(Window.GetHeight() / 2 - scaled_flower_image.GetHeight() / 2);
flower_sprite.SetZ(-10000); # Place right at the back

主题制作好后:
sudo plymouth-set-default-theme mytheme

https://raspberrypi.stackexchange.com/questions/36657/hide-complete-boot-message-from-rpi-booting
https://unix.stackexchange.com/questions/56531/how-to-get-fewer-ttys-with-systemd
https://github.com/HerbFargus/Raspberry-Pi-Scripts/wiki/Plymouth
https://github.com/notro/fbtft/wiki/Bootsplash

NRF24L01

两个NRF24L01要互相通信,一下参数需要一直:
Channel
Data Rate
AutoAck
CRC Length
Address Length
Address
Payload length

这几天调试stm32 和 arduino nrf24l01 通信,一直调不通。原因就是两个设备用的两个不同的库对address的字节顺序不一致导致,把其中一个的地址倒序后才可以通信。

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.