-
Notifications
You must be signed in to change notification settings - Fork 85
serial error
Chris Petersen edited this page Oct 16, 2014
·
1 revision
serial-error returns #t if a serial error has occurred.
Example 1: Sending function from apps/SerialDemo/main.scm
(let loop ((m (u8vector->list (string->u8vector buf)))(err #f))
(if err
(begin (set! serialport #f) (glgui-widget-set! gui open-button 'color Red))
(if (fx> (length m) 0) (begin
(serial-writechar serialport (car m))
(loop (cdr m) (or (serial-error) (serial-timeout)))
))
))
-
- accelerometer
- alist
- audio
- audioaux
- base64
- btle-scan
- camera
- cdb
- cgi
- config
- csv
- curl
- digest
- dmtx
- download
- eventloop
- fcgi
- fft
- generalized-arrays
- gps
- graph
- gyro
- hidapi
- hpdf
- html
- httpsclient
- hybridapp
- json
- lmdb
- ln_core
- ln_glcore
- ln_glgui
- ln_store
- localization
- localization_gui
- localnotification
- magnetometer
- mdns
- mqtt
- mqtt-store
- multitouch
- oauth
- orientation
- p256ecdsa
- png
- portaudio
- pregexp
- pressure
- prime
- pushnotification
- redcap
- rsa
- rtaudio
- rupi
- rotation
- sanestring
- scheduler
- serial
- sets
- settings
- simplexnoise
- sqlite
- ssax
- syntax-case
- timestamp
- ttf
- uiform
- url
- uuid
- vibrate
- videoplayer
- watchdog
- website
- xml
- zip