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

  1. /*
  2. Copyright (C) 2011 James Coliz, Jr. <maniacbug@ymail.com>
  3. This program is free software; you can redistribute it and/or
  4. modify it under the terms of the GNU General Public License
  5. version 2 as published by the Free Software Foundation.
  6. */
  7. /**
  8. * @file printf.h
  9. *
  10. * Setup necessary to direct stdout to the Arduino Serial library, which
  11. * enables 'printf'
  12. */
  13. #ifndef __PRINTF_H__
  14. #define __PRINTF_H__
  15. #include "WProgram.h"
  16. int serial_putc( char c, FILE * )
  17. {
  18. Serial.write( c );
  19. return c;
  20. }
  21. void printf_begin(void)
  22. {
  23. fdevopen( &serial_putc, 0 );
  24. }
  25. #endif // __PRINTF_H__