กลับไปหน้ารวมไฟล์
torch-led-library-1f4c1c-en.md

These are libraries for a torch that can do different functions. Each version is similar to each other with updated functionality and control.

Torch_LED_V1

Torch_LED_V1 is the first library for the control of light functions within torches. There can be any number of functions that can be used to control the torch LEDs. There are 7 built-in functions within the library that can be used and 6 are set at default functions. There is also an ability to make your own functions, this will help you get the best settings for your torch.This library gets controlled internally by a button presses. By pressing the button, it will cycle through each function. Once there are no more functions, the torch will turn off. If the button is held down for more than 3 seconds the torch will turn off.

Torch_LED_V2

This library is very similar to Torch_LED_V1 but with updated functions, different setup and updated internal button control. The setup to try to make it easier to implement into any design.This library for the control of light functions within torches. There can be any number of functions that can be used to control the torch LEDs. There are 7 built-in functions within the library that can be used and 6 are set at default functions. There is also an ability to make your own functions, this will help you get the best settings for your torch.This library does not by default gets controlled internally by a button press but it can light in Torch_LED_V1. By pressing the button, it will cycle through each function. Once there are no more functions, the torch will turn off. If the button is held down for more than 3 seconds the torch will turn off.

Torch_LED_V3

This library is similar to Torch_LED_V1 and Torch_LED_V2 but with major updated to functions, different setup and button control. The setup to try to make it easier to implement into any design and ay number of LEDs or functions.This library for the control of light functions within torches. There can be any number of functions or LEDs that can be used to control. There are 4 built-in functions within the library that can be used. The default functions are run the number of times that there are LEDs to allow each LED to be lit up. There is also an ability to make your own functions, this will help you get the best settings for your torch.Torch_LED_V3 does not gets controlled internally by a button press but instead by the Button class. The Button class is not required for the Torch_LED_V3 to be used and implement into any design. Functions NextFunction, GotoFunction and off are used to control the Torch_LED_V3 light functions.

EXPANDED TECHNICAL DETAILS

High-Level Lighting API

This developer-focused project provides a simplified C++ library for managing complex LED behaviors like "Flashing," "Pulsing," and "Strobe" without delay() calls.

  • Non-Blocking Temporal Kernel: The library uses an internal state machine driven by millis(). Developers can simply call torch.pulse(500) to have an LED breathe at a 500ms rate while the rest of the Arduino code continues to run.
  • Multi-Pin LED Orchestration: Supports controlling multiple independent LEDs or RGB clusters simultaneously, each with its own unique animation pattern.

Efficiency

  • Memory-Optimized Callbacks: Written with a very small footprint (less than 2KB), making it suitable for even the smallest Arduinos like the ATtiny85.

ข้อมูล Frontmatter ดั้งเดิม

title: "Torch LED Library"
description: "These libraries for a torch can do different functions. Each version is similar to each other with updated functionality and control."
author: "tinkersprojects"
category: "Lights & LEDs"
tags:
  - "lights"
  - "library"
  - "torch"
views: 5403
likes: 0
price: 299
difficulty: "Intermediate"
components:
  - "1x Arduino UNO"
tools: []
apps:
  - "1x Arduino IDE"
downloadableFiles:
  - "https://github.com/tinkersprojects/Torch_LED"
  - "https://github.com/tinkersprojects/Torch_LED"
documentationLinks: []
passwordHash: "d29526da2713e48b3fc99db877fd117769352758de38b61504a2b70da37ca33c"
encryptedPayload: "U2FsdGVkX1+ZXGSBtFFXZAkBED5TJFnmAtb7HDkSdKVqqKNm5HsYSOf0yZ4Xtty20jt8OCR/hhnykAMovpOY3FdlvBUfJcrDgWCF6mxDO8k="
seoDescription: "Torch LED Library for Arduino featuring multiple versions with updated functionality and improved control for your projects."
videoLinks: []
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/torch-led-library-1f4c1c_cover.jpg"
lang: "en"