mirror of
https://github.com/radio95-rnt/rds95.git
synced 2026-02-26 12:32:05 +01:00
readme
This commit is contained in:
@@ -35,6 +35,12 @@ You wanna make an ODA? Sure go for it, look in the scripts folder to see `0-ert.
|
||||
Wanna do scrolling PS without C stuff and no external scripts? Just do it with the `tick` function!
|
||||
Don't wanna run a bash script to send your station's data to the encoder when defaults take over? I'll welcome you to the `on_init` function
|
||||
|
||||
### RFT
|
||||
|
||||
For a long time there was no RFT in RDS95, but on 28th December 2025 that changed when i implemented it in lua, just call the load function with the path and id 0 and set rds2 mode to 2, and see the your station's logo in the decoder
|
||||
|
||||
And yes, it is implemented in only Lua and the ODA engine which is also in Lua
|
||||
|
||||
## Disclaimer
|
||||
|
||||
RDS95 is "based" on [Anthony96922](https://github.com/Anthony96922/)'s [MiniRDS](https://github.com/Anthony96922/MiniRDS) licensed under GPLv3
|
||||
|
||||
@@ -16,11 +16,8 @@ local function start_rft()
|
||||
local function b(i) return string.byte(_Rft_file, base + i) or 0 end
|
||||
|
||||
local word1 = (((_Rft_toggle and 1 or 0) << 7) | ((seg >> 8) & 0x7F))
|
||||
|
||||
local word2 = ((seg & 0xFF) << 8) | b(0)
|
||||
|
||||
local word3 = (b(1) << 8) | b(2)
|
||||
|
||||
local word4 = (b(3) << 8) | b(4)
|
||||
|
||||
_Rft_file_segment = seg + 1
|
||||
@@ -43,6 +40,7 @@ function load_rft_file(path, id)
|
||||
if not file then error("Could not open file") end
|
||||
_Rft_file = file:read("*a")
|
||||
file:close()
|
||||
|
||||
if #_Rft_file > 262143 then error("The file is too large", 2) end
|
||||
if _Rft_oda_id == nil then start_rft() end
|
||||
---@diagnostic disable-next-line: param-type-mismatch
|
||||
|
||||
Reference in New Issue
Block a user