B4R Tutorial Timers, Loopers and CallSubPlus - Erel    Jan 8, 2017   (19 reactions) programs as the single thread cannot do anything else while it sleeps. The B4R solution is to use a Timer instead. There could be many timers running and they will all work without interfering each other. Blink program with a timer: Sub Process_Globals Public Serial1 As Serial Private Timer1 As Timer Private pin13 As Pin End Sub Private Sub AppStart Serial1.Initialize(115200) Log("AppStart") pin13.Initialize(13, pin13.MODE_OUTPUT) Timer1.Initialize("Timer1_Tick... B4R Code Snippet [ESP32] DeepSleep until wake up by timer or button - peacemaker    Jul 7, 2025   (6 reactions) by timer (msec)
uint64_t sleep_time_us = o->toULong() * 1000;
if(sleep_time_us > 0) {
esp_sleep_enable_timer_wakeup(sleep_time_us);
}
#ifdef CONFIG_IDF_TARGET_ESP32
// ESP32... B4A Library [B4X][B4A] ⏱️ B4XDaisyCountdown - Beautiful, DaisyUI/Tailwind Inspired Countdown Timers! - Mashiane    Mar 10, 2026   (2 reactions) Hello Fam 👋 If you're looking to add modern, eye-catching countdown timers to your projects... building gorgeous, semantic UI timers incredibly easy. The component is broken down into two main... is a quick snippet demonstrating how to initialize a countdown timer and update the seconds using a timer tick, just like in the included B4XPageCountdown example: Sub Class_Globals Private Root As B4XView Private xui As XUI Private timer1 As Timer Private seconds As Int = 59... B4A Question Home Widgets w/Timer - drgottjr    Jan 16, 2023 updated my little home widget using the new receiver module. running happily for a while now on first try on 2 devices (androids 12 & 13, respectively). i thought i would try using a timer to update the widget. i mean, from the b4a point of view, we don't see it as a service anymore that needs to be restarted. the widget is running all the time, no? (until stopped.) so i turn off automatic updating and use a timer for tighter granularity (stock quotes). anyway, does a timer... B4R Question B4X timer interval - really 30 days is possible ? - peacemaker    Aug 22, 2024 Hi, All
Who tried the timer for many days ?
Really works if MCU is powered for sure ?... B4J Library [IoT] jPi4J - Raspberry Pi GPIO controller - Erel    Jun 26, 2023   (19 reactions)   tags: Raspberry Pi GPIO is an input pin and pin2 is an output pin. Pin2 state is changed every 5 seconds with a timer: 'Non... As GpioPinDigitalInput Private Pin1 As GpioPinDigitalOutput Private Timer1 As Timer End Sub....SetPinPullResistance("PULL_DOWN") Log("Monitoring Pin2 state") Timer1.Initialize("Timer1", 5000) Timer1.Enabled = True StartMessageLoop End Sub Sub Timer1_Tick Pin1... Wish B4X example of "BackGround" timer - MrKim    May 18, 2024   (4 reactions) I just spent an hour reading about "BackGround" timers in B4i and B4X and it has left me confused and feeling like, once again I am missing some key element. I mean basically we are talking... B4A Question Serious malfunction of a timer ? - AlpVir    Apr 4, 2024 (TimerRegistra.IsInitialized) Then
T1=Main.RegistraOgni
TimerRegistra.Initialize("TimerRegistra",T1)
TimerRegistra.Interval=T1
End If
The same app, however, on another smartphone in... B4J Question B4J server & timers - LucaMs    May 3, 2017   (1 reaction) Can I have problems if I start many timers (500 or 1000, I hope :)) in the main thread? I'm thinking to create a class containing a timer and I could have 1000 instances of this class. Usually the timer interval will be set to 20,000 ms. Thank you... B4A Question CustomListView Scroll with Timer - ddefrain    Jun 23, 2021 Hi All. Is it possible to scroll a CustomListView with a Timer like manual scrolling (Not With JumpToItem) CustomListView ka7zV9Ww-nk Thank's in Advance Best Regards.... Page: 1   2   3   4   5   6   7   |