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 RollerDrive
  • function set_poster
  • function set_mode
  • function set_auto_mode_period
  • function set_auto_mode_range
  • function calibration
  • function is_calibrated
  • function get_poster_count
  • function run_ind_motors_up
  • function run_ind_motors_down
  • function run_ind_motors_stop
  • function test_get_state_now
  • function test_get_state_last
  • function test_set_event
  • function test_rele
  • function test_io
  1. Hardware a programování
  2. Programování HW
  3. Knihovny

RollerDrive

Public Functions

Type

Name

uint8_t

uint8_t

uint8_t

uint8_t

uint8_t

bool

uint8_t

uint8_t

uint8_t

uint8_t

uint32_t

uint32_t

void

void

void

Public Functions Documentation

RollerDrive::RollerDrive (
    void 
)
uint8_t RollerDrive::set_poster (
    uint8_t dst
)

Set poster you want do display. Range is 1 to N (N = posters count).

uint8_t RollerDrive::set_mode (
    RollerMode mode
)

Select mode of operation. Some mode requires successfully finished calibration.

uint8_t RollerDrive::set_auto_mode_period (
    uint32_t period_ms
)

Auto mode changes poster after some time. Set this time in miliseconds.

uint8_t RollerDrive::set_auto_mode_range (
    uint8_t from,
    uint8_t to
)

Set auto mode range, ie roll from poster 'start' to poster 'to' and repeat.

uint8_t RollerDrive::calibration (
    void 
)

Init and start calibration.

bool RollerDrive::is_calibrated (
    void 
)

Was calibration successfully finished?

uint8_t RollerDrive::get_poster_count (
    void 
)

Returns number of posters. Return zero if calibration wasn't finished.

uint8_t RollerDrive::run_ind_motors_up (
    bool top = false,
    bool bottom = false
)
uint8_t RollerDrive::run_ind_motors_down (
    bool top = false,
    bool bottom = false
)
uint8_t RollerDrive::run_ind_motors_stop ()
uint32_t RollerDrive::test_get_state_now (
    void 
)
uint32_t RollerDrive::test_get_state_last (
    void 
)
void RollerDrive::test_set_event (
    uint32_t event
)
void RollerDrive::test_rele (
    uint8_t val
)

Test function. Test rele function.

void RollerDrive::test_io (
    void 
)

Debug function. Read and print all IOs.

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

PreviousRGB_matrixNextSHT21

Last updated 6 years ago

(void)

(uint8_t dst)

(RollerMode mode)

(uint32_t period_ms)

(uint8_t from, uint8_t to)

(void)

(void)

(void)

(bool top = false, bool bottom = false)

(bool top = false, bool bottom = false)

()

(void)

(void)

(uint32_t event)

(uint8_t val)

(void)

function

function

function

function

function

function

function

function

function

function

function

function

function

function

function

function

RollerDrive
set_poster
set_mode
set_auto_mode_period
set_auto_mode_range
calibration
is_calibrated
get_poster_count
run_ind_motors_up
run_ind_motors_down
run_ind_motors_stop
test_get_state_now
test_get_state_last
test_set_event
test_rele
test_io
RollerDrive
set_poster
set_mode
set_auto_mode_period
set_auto_mode_range
calibration
is_calibrated
get_poster_count
run_ind_motors_up
run_ind_motors_down
run_ind_motors_stop
test_get_state_now
test_get_state_last
test_set_event
test_rele
test_io