Ein Roboter mit bürstenlosem Antrieb, differenzial und NRF24L01 Funk. Großflächig gebaut um ein großes Solarpanel aufzunehmen.
https://gitlab.informatik.hs-fulda.de/fdai5253/roboter
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
598 B
33 lines
598 B
/*
|
|
Copyright (C) 2011 James Coliz, Jr. <maniacbug@ymail.com>
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU General Public License
|
|
version 2 as published by the Free Software Foundation.
|
|
*/
|
|
|
|
/**
|
|
* @file printf.h
|
|
*
|
|
* Setup necessary to direct stdout to the Arduino Serial library, which
|
|
* enables 'printf'
|
|
*/
|
|
|
|
#ifndef __PRINTF_H__
|
|
#define __PRINTF_H__
|
|
|
|
#include "WProgram.h"
|
|
|
|
int serial_putc( char c, FILE * )
|
|
{
|
|
Serial.write( c );
|
|
|
|
return c;
|
|
}
|
|
|
|
void printf_begin(void)
|
|
{
|
|
fdevopen( &serial_putc, 0 );
|
|
}
|
|
|
|
#endif // __PRINTF_H__
|