Camera Slider Firmware 1.0
Firmware for camera slider with stepper motor control and BLE communication
Macros
Implementation Details

Technical implementation information. More...

Macros

#define BLE_BUFFER_SIZE   64
 Buffer management.
 
#define BLE_MAIN_LOOP   "Main BLE processing loop"
 Main BLE processing loop.
 
#define BLE_MOTOR_INTEGRATION   "Direct motor control integration"
 Motor control integration.
 
#define BLE_PROCESSING_DELAY   2
 

Detailed Description

Technical implementation information.

Macro Definition Documentation

◆ BLE_BUFFER_SIZE

#define BLE_BUFFER_SIZE   64

Buffer management.

  • Input buffer: 64 bytes
  • Processing delay: 2ms for buffer filling
  • Character-by-character command processing
  • Real-time response generation

Definition at line 329 of file ble_api.h.

◆ BLE_MAIN_LOOP

#define BLE_MAIN_LOOP   "Main BLE processing loop"

Main BLE processing loop.

The main loop processes incoming BLE commands and forwards serial data to connected devices. Command processing includes:

  • Character-based commands (a, b)
  • LED state management
  • Motor control via slide_dist()
  • Bidirectional data forwarding
See also
loop() in bleuart.ino

Definition at line 318 of file ble_api.h.

◆ BLE_MOTOR_INTEGRATION

#define BLE_MOTOR_INTEGRATION   "Direct motor control integration"

Motor control integration.

BLE commands directly interface with the motor control system:

  • slide_dist() function calls
  • Direction changes
  • Position tracking
  • Speed control
See also
motors.h for motor control functions

Definition at line 343 of file ble_api.h.

◆ BLE_PROCESSING_DELAY

#define BLE_PROCESSING_DELAY   2

Definition at line 330 of file ble_api.h.