Public Documentation
  • Introduction
  • Getting started
    • Introduction
    • 1. Welcome Page
    • 2. Introduction (Beginner's Guide)
  • Portal Tools
    • Blocko
      • Ůvod do blocka
      • Flip-flop
      • REST-API bloček
    • Grid
      • Úvod do GRID
      • Základní Tlačítko (základy GRID)
      • vylepšený Přepínač (stylování a pokročilé možnosti GRID)
      • text generátor button (messeage type, two elements one widget)
      • graf (pokročilé funkce GRID)
      • Slider (User class v GRIDu)
      • Styly a jejich použití
  • Cloud
    • Cloud
    • Instancies
    • Rest-Api
  • General
    • What we plan
  • Hardware a programování
    • Úvod
      • Nahrání prvního programu
    • Konektivita
      • Specifikace zdroje internetu
      • GSM
      • 6LowPAN
      • Komunikace s portálem
      • Přepínání mezi servery
    • Hardware
      • Základní jednotky
        • IODAG3E
          • Rozhraní a periférie
          • Konektor X a Y
          • Napájení
          • Připojení zdroje k VBAT
          • Paměti
          • Technické specifikace
          • Schémata
        • IODAG3L
      • Rozšiřující moduly
        • GSM shield
        • LED shield
        • Relay shield
        • RFID shield
        • Ultrasonic shield
        • Meteo shield
        • Movement shield
        • PIR shield
        • RGB Displej shield
        • Serial shield
      • Ostatní
        • DevKitG3
          • Schéma
        • TK3G
          • Schéma
        • ZPPG3
          • Schéma
        • WEXP
    • Programování HW
      • Architektura FW
        • Aktualizace FW
        • Autobackup
      • Struktura programu
      • Byzance API
        • Vstupy a výstupy do Portálu
        • Callback Busy
        • Odložený restart
        • Callbacky připojení
        • Uživatelská makra
      • MBED API
        • Vstupy a výstupy
        • Komunikační rozhraní
        • Časování
        • RTOS
      • Knihovny
        • DHT
        • DS1820
        • Dali
        • EdgeStruct
        • I2CWrapper
        • Knock
        • MFRC522
        • MFRC522::MIFARE_Key
        • MPU9150
        • ms5637
        • OneWire
        • PCA9536
        • RGB_matrix
        • RollerDrive
        • SHT21
        • ST7565
        • Servo
        • TCA6424A
        • TLC59116
        • TripleSevenSeg
        • MFRC522::Uid
        • WS2812
        • WakeUp
      • Offline programování
        • Vlastní IDE
        • Upload kódu z GUI
        • Upload kódu z konzole
        • Upload kódu Drag&drop
    • Tutoriály
      • Datum a čas (RTC)
      • Komunikace po sériové lince (UART) s PC
        • Konfigurace sériové linky v PC
        • Programování sériové linky
      • Základní tutoriály
        • Digital Read
        • Analog Read/Write
        • PWM Fade
        • Timer/Ticker
        • State Change Detection
        • Ovládání LED modulu
        • BusOut
        • HC-SR04 Senzor
      • Pokročilé
    • Správa a diagnostika
      • Zdroj restartu
      • LED modul
      • Identifikace zařízení
      • Monitoring parametrů
      • Vytížení zařízení
      • Webové rozhraní
        • Základní přehled
        • Správce firmware
        • Vlákna
        • Definované vstupy
        • Konfigurace MQTT
        • Nastavení
      • Bootloader
        • Režimy bootloaderu
        • Command mód
        • Další vlastnosti bootloaderu
      • Webová konzole
      • Konfigurace zařízení
        • Confighash
      • Omezení konfigurace
        • Konfigurace
        • Binárky
        • Omezení MQTT
        • Lowpan
    • Knowledge base
      • Náhodná čísla
      • Watchdog
      • Paměť RAM
Powered by GitBook
On this page
  • Public Functions
  • Public Functions Documentation
  • function TLC59116
  • function initialize
  • function reset_sw
  • function set_channel
  • function set_all_channels
  • function set_register
  • function set_global_pwm
  1. Hardware a programování
  2. Programování HW
  3. Knihovny

TLC59116

PreviousTCA6424ANextTripleSevenSeg

Last updated 6 years ago

Class to control 16-channel 8-bit I2C PWM driver.

Public Functions

Type

Name

uint8_t

uint8_t

uint8_t

uint8_t

uint8_t

uint8_t

Public Functions Documentation

function

TLC59116::TLC59116 ()

driver constructor.

function

uint8_t TLC59116::initialize (
    PinName sda,
    PinName scl
)

Returns:

Return 0 if success. Non zero value means some error.

uint8_t TLC59116::reset_sw (
    void 
)
uint8_t TLC59116::set_channel (
    uint8_t channel,
    uint8_t pwm
)

Set single channel output number "channel" with given PWM value.

Parameters:

  • channel Numbers 0 to 15 (16 channels).

  • pwm Value from 0 (off) to 255 (fully on).

Returns:

Return 0 if success. Non zero value means some error.

uint8_t TLC59116::set_all_channels (
    uint8_t * data
)

Set all 16 channels with one command with given PWM values.

Parameters:

  • data Array with 16 uint8_t items with PWM value (array element 0 = channel 0, etc).

Returns:

Return 0 if success. Non zero value means some error.

uint8_t TLC59116::set_register (
    uint8_t reg,
    uint8_t value
)

Parameters:

  • reg See this header file with register definitions.

Returns:

Return 0 if success. Non zero value means some error.

uint8_t TLC59116::set_global_pwm (
    uint8_t pwm
)

Default configuration also use global outputs dimming. Each output has individual (256 steps) and global dimming (256 steps) ability.

Parameters:

  • pwm Value from 0 (off) to 255 (fully on).

Returns:

Return 0 if success. Non zero value means some error.

The documentation for this class was generated from the following file: D:/w/hw-libs/\_libs\_/libraries/TLC59116.h

()

(PinName sda, PinName scl)

(void)

(uint8_t channel, uint8_t pwm)

(uint8_t * data)

(uint8_t reg, uint8_t value)

(uint8_t pwm)

Initialization of the driver and configuration to default state, i.e. all outputs anabled, individual and global PWM active.

function

Reset the chip to power on state (good to call "initialize" function to get it work).

function

function

function

Direct write to single register in the . Can be used to get the device to alternative configuration.

function

TLC59116
TLC59116
TLC59116
TLC59116
TLC59116
TLC59116
initialize
reset_sw
set_channel
set_all_channels
set_register
set_global_pwm
TLC59116
initialize
reset_sw
set_channel
set_all_channels
set_register
set_global_pwm