Bluecontroller (BCA8-BTM)
Epsilon
Bluecontroller BCA8-BTM (bluetooth module BTM-222, microcontroller ATmega328P)
|
#include "bluecontroller.h"
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... | |
Licence: CC BY 3.0 (http://creativecommons.org/licenses/by/3.0/)
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
void bt_debug | ( | char * | s | ) |
Debug method.
Send a string, if debug is on.
s | string |
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).
i | If i==1 turn LED on, else off |
void bt_putc | ( | char | c | ) |
Send a character.
Sends a character
c | character |
void bt_puts | ( | char * | s | ) |
Send a string.
Sends a string (char*)
s | string |
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)
s | string |
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