Braille display access private API.
Braille display access private API. * available since Chrome 31
(get-display-state)
Gets the current display state.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [result] where:
|result| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Gets the current display state. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [result] where: |result| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(tap-all-events chan)
Taps all valid non-deprecated events in chromex.ext.braille-display-private namespace.
Taps all valid non-deprecated events in chromex.ext.braille-display-private namespace.
(tap-on-display-state-changed-events channel & args)
Fired when a braille display is connected or disconnected.
Events will be put on the |channel| with signature [::on-display-state-changed [state]] where:
|state| - ?
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
Fired when a braille display is connected or disconnected. Events will be put on the |channel| with signature [::on-display-state-changed [state]] where: |state| - ? Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
(tap-on-key-event-events channel & args)
Fired when an input event is received from the display.
Events will be put on the |channel| with signature [::on-key-event [event]] where:
|event| - ?
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
Fired when an input event is received from the display. Events will be put on the |channel| with signature [::on-key-event [event]] where: |event| - ? Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
(update-bluetooth-braille-display-address address)
Updates the single user-preferred braille device with the given bluetooth device address and starts or restarts the Brltty daemon.
|address| - ?
Updates the single user-preferred braille device with the given bluetooth device address and starts or restarts the Brltty daemon. |address| - ?
(update-bluetooth-braille-display-address* config address)
(write-dots cells columns rows)
Write the given dot patterns to the display. The buffer contains one byte for each braille cell on the display, starting from the leftmost cell. Each byte contains a bit pattern indicating which dots should be raised in the corresponding cell with the low-order bit representing dot 1 and so on until bit 7 which corresponds to dot 8. If the number of bytes in the buffer is not equal to the display size, the buffer will either be clipped or padded with blank cells on the right. The buffer is a 2D array compressed into 1D. The |columns| and |rows| parameters give the original 2D dimensions of the buffer. To access an element cells[r][c], simply access cells[r * columns + c].
|cells| - ? |columns| - ? |rows| - ?
Write the given dot patterns to the display. The buffer contains one byte for each braille cell on the display, starting from the leftmost cell. Each byte contains a bit pattern indicating which dots should be raised in the corresponding cell with the low-order bit representing dot 1 and so on until bit 7 which corresponds to dot 8. If the number of bytes in the buffer is not equal to the display size, the buffer will either be clipped or padded with blank cells on the right. The buffer is a 2D array compressed into 1D. The |columns| and |rows| parameters give the original 2D dimensions of the buffer. To access an element cells[r][c], simply access cells[r * columns + c]. |cells| - ? |columns| - ? |rows| - ?
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close