From 7a0b1c0887253c5164b51e5624679929e317d050 Mon Sep 17 00:00:00 2001
From: sfromis <47082390+sfromis@users.noreply.github.com>
Date: Sat, 30 Nov 2024 20:33:54 +0100
Subject: [PATCH] Update Berry.md
Adding tasmota.scale_uint function
---
docs/Berry.md | 2 ++
1 file changed, 2 insertions(+)
diff --git a/docs/Berry.md b/docs/Berry.md
index 7f52f88d7b..a3d94c7793 100644
--- a/docs/Berry.md
+++ b/docs/Berry.md
@@ -506,6 +506,8 @@ tasmota.remove\_driver|`(instance
tasmota.gc|`() -> int`
Triggers garbage collection of Berry objects and returns the bytes currently allocated. This is for debug only and shouldn't be normally used. `gc` is otherwise automatically triggered when necessary.
tasmota.urlfetch|`(url:string [, filename:string]) -> bytes:int`
Download a url (http or https) and store the content in the filesystem
`filename` is optional, needed if you want to change the name of the file from the url suffix. Returns the number of bytes downloaded or -1 if failed.
tasmota.urlbecload|`(url:string) -> bool`
Download `.bec` file from a url and run it, return `true` if sucessful. This allows to run complementary code like Partition Wizard from precompiled Berry.
+tasmota.scale\_uint|`(value:int, fromMin:int, fromMax:int, toMin:int, toMax:int) -> Linear scaling of an integer range, based on two points on the line, typically min and max for "from" and "to" ranges.
+
#### Functions used to retrieve Tasmota configuration