rpi-ticker

所属分类:嵌入式Linux
开发工具:C++
文件大小:0KB
下载次数:0
上传日期:2023-09-02 20:12:36
上 传 者sh-1993
说明:  覆盆子皮新闻股票行情,
(Raspberry Pi news stock ticker,)

文件列表:
Makefile (524, 2023-09-02)
bindings/ (0, 2023-09-02)
bindings/Makefile (408, 2023-09-02)
bindings/RGBLedCanvas.cs (3100, 2023-09-02)
bindings/RGBLedFont.cs (2168, 2023-09-02)
bindings/RGBLedMatrix.cs (9768, 2023-09-02)
bindings/RGBLedMatrix.dll (8192, 2023-09-02)
docs/ (0, 2023-09-02)
docs/DietPi setup.txt (470, 2023-09-02)
docs/adafruit-rgb-matrix-bonnet-for-raspberry-pi.pdf (3078394, 2023-09-02)
examples/ (0, 2023-09-02)
examples/Makefile (1465, 2023-09-02)
examples/font-example.cs (1150, 2023-09-02)
examples/matrix-rain.cs (2758, 2023-09-02)
examples/minimal-example.cs (1411, 2023-09-02)
examples/pulsing-brightness.cs (1672, 2023-09-02)
fonts/ (0, 2023-09-02)
fonts/10x20.bdf (974681, 2023-09-02)
fonts/4x6.bdf (94333, 2023-09-02)
fonts/5x7.bdf (194747, 2023-09-02)
fonts/5x8.bdf (154919, 2023-09-02)
fonts/6x10.bdf (211073, 2023-09-02)
fonts/6x12.bdf (549703, 2023-09-02)
fonts/6x13.bdf (512118, 2023-09-02)
fonts/6x13B.bdf (159441, 2023-09-02)
fonts/6x13O.bdf (95801, 2023-09-02)
fonts/6x9.bdf (144785, 2023-09-02)
fonts/7x13.bdf (400761, 2023-09-02)
fonts/7x13B.bdf (124748, 2023-09-02)
fonts/7x13O.bdf (103390, 2023-09-02)
fonts/7x14.bdf (327838, 2023-09-02)
fonts/7x14B.bdf (128518, 2023-09-02)
fonts/8x13.bdf (459959, 2023-09-02)
fonts/8x13B.bdf (141768, 2023-09-02)
fonts/8x13O.bdf (160613, 2023-09-02)
fonts/9x15.bdf (765675, 2023-09-02)
fonts/9x15B.bdf (270622, 2023-09-02)
... ...

# Raspberry Pi Ticker (rpi-ticker) This project contains the source code for deploying a news headline and stock ticker powered by RGB LED matrix panels and the [Raspberry Pi control library](https://github.com/hzeller/rpi-rgb-led-matrix) from [hzeller](https://github.com/hzeller). The specific RGB LED matrix panels and bonnet/HAT I used for this project were sourced from [Adafruit](https://www.adafruit.com) but others may work as well. The `src` folder contains the application using the C# bindings from [hzeller's Raspberry Pi control library](https://github.com/hzeller/rpi-rgb-led-matrix) to fetch stock quotes and news headlines from [Yahoo Finance](https://finance.yahoo.com/) and [Newsdata.IO](https://newsdata.io/). ## Getting started ### Setting up a RPi with DietPi OS Skip this step if the RPi is already set or is running with an OS and dependencies needed for this project 1. Download DietPi 32bit 2. Install DietPi using Rufus - https://dietpi.com/docs/install/ 3. Boot RPi 4. Run dietpi-config Enable WiFi Install git Change Dropbear SSH to OpenSSH 5. Install packages sudo apt-get install make sudo apt-get install build-essential sudo apt-get install mono-complete 6. Install dotnet (scripted install) wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh chmod +x ./dotnet-install.sh ./dotnet-install.sh --channel 6.0 Add to path echo 'export PATH="$PATH:$HOME/.dotnet"' >> ~/.bashrc source ~/.bashrc dotnet --version 7. Clone this repo make make build-csharp 8. Edit config Edit src/symbols.txt Get APIKey from NewData.IO and update src/.env 9. Run sudo mono rpi-ticker.exe ### Running this code If you would like to get started with some simple examples before setting up the project, there are examples in the `examples` folder that you can find [here](examples/README.md) with instructions on how to run each of them. Otherwise the following steps outliens how to setup the `rpi-ticker`. #### Build the project 1. In the root directory build all the necessary libraries based on [hzeller/rpi=rgb-led-matrix](https://github.com/hzeller/rpi-rgb-led-matrix) ```shell $ make ``` 2. To build the C# wrapper for the RGB Matrix C library you need to first have mono installed ```shell $ sudo apt-get update $ sudo apt-get install mono-complete ``` 3. Then, in the root directory build the C# libraries and project ```shell make build-csharp ``` ##### Run the text scroller project 1. Edit the `src/symbols.txt` file with new line separated symbols to retrieve quotes for 2. Run the rpi-ticker application in the `src` folder using mono ```shell sudo mono rpi-ticker.exe ``` #### Notes C# applications look for libraries in the working directory of the application. To use this library for your own projects you will need to ensure you have RGBLedMatrix.dll and librgbmatrix.so in the same folder as your exe. ## Adafruit demos Adafruit provides a few example applications to test the RGB LED Matrix as well as detailed instructions on how to setup the panels to work with the Raspberry Pi. 1. Follow Adafruit documentation to setup bonnet/HAT with the Adafruit RGB LED matrix panel https://cdn-learn.adafruit.com/downloads/pdf/adafruit-rgb-matrix-bonnet-for-raspberry-pi.pdf 2. Note that if you are using the Makefile in the rpi-rgb-led-matrix repo, add the --led-gpio-mapping=adafruit-hat input argument sudo ./demo -D0 --led-rows=32 --led-cols=16 sudo ./scrolling-text-example --led-rows=32 --led-cols=64 --led-chain=2 --led-gpio-mapping=adafruit-hat -f ../fonts/6x10.bdf "Hello World"

近期下载者

相关文件


收藏者