Bluecontroller (BCA8-BTM)  Epsilon
Bluecontroller BCA8-BTM (bluetooth module BTM-222, microcontroller ATmega328P)
 All Files Functions Macros
bluecontroller.c File Reference
#include "bluecontroller.h"
Include dependency graph for bluecontroller.c:

Functions

void bt_init (void)
 Initialization. More...
 
void bt_setut (void)
 Setup. More...
 
void bt_reset (void)
 Reset the Bluetooth module. More...
 
void bt_turn_off (void)
 Turn off Bluetooth module. More...
 
void bt_turn_on (void)
 Turn on Bluetooth module. More...
 
void bt_escape_sequence (void)
 Send escape sequence. More...
 
void bt_putc (char c)
 Send a character. More...
 
void bt_puts (char *s)
 Send a string. More...
 
void bt_send_cmd (char *s)
 Send a command. More...
 
void bt_debug (char *s)
 Debug method. More...
 
void bt_led_on (uint8_t i)
 Turn LED on or off. More...
 

Detailed Description

Author
Fabi Rosenthal, Florian Thaeter
Version
Epsilon
Date
18.05.2013

LICENSE

Licence: CC BY 3.0 (http://creativecommons.org/licenses/by/3.0/)

DESCRIPTION

Code: http://github.com/Xennis/Bluecontroller_BCA8_BTM

Documentation: http://xennis.org/wiki/Bluecontroller

Note: This file uses (with permission) methods, which are Copyright (c) by Michael Dreher Source: http://code.google.com/r/michaeldreher42-bluecontroller/source/browse/bluecontroller/examples/Setup_BlueController/Setup_BlueController.pde

Function Documentation

void bt_debug ( char *  s)

Debug method.

Send a string, if debug is on.

Parameters
sstring
void bt_escape_sequence ( void  )

Send escape sequence.

Sends escape sequence (+++)

void bt_init ( void  )

Initialization.

Initialize Bluecontroller

void bt_led_on ( uint8_t  i)

Turn LED on or off.

Turns LED on (i==1) / off (i!=1).

Parameters
iIf i==1 turn LED on, else off
void bt_putc ( char  c)

Send a character.

Sends a character

Parameters
ccharacter
void bt_puts ( char *  s)

Send a string.

Sends a string (char*)

Parameters
sstring
void bt_reset ( void  )

Reset the Bluetooth module.

This terminates the current Bluetooth connection.

void bt_send_cmd ( char *  s)

Send a command.

Sends a Bluecontroller command (needed for setup)

Parameters
sstring
void bt_setut ( void  )

Setup.

Setup Bluetooth module

void bt_turn_off ( void  )

Turn off Bluetooth module.

Turns off Bluetooth module

void bt_turn_on ( void  )

Turn on Bluetooth module.

Turns on the Bluetooth module