Keyboard firmwares for Atmel AVR and Cortex-M
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.

print.h 424B

1234567891011121314151617181920
  1. #ifndef PRINT_H__
  2. #define PRINT_H__ 1
  3. #include <stdbool.h>
  4. #include <avr/pgmspace.h>
  5. extern bool print_enable;
  6. // this macro allows you to write print("some text") and
  7. // the string is automatically placed into flash memory :)
  8. #define print(s) print_P(PSTR(s))
  9. void print_P(const char *s);
  10. void phex(unsigned char c);
  11. void phex16(unsigned int i);
  12. void pbin(unsigned char c);
  13. void pbin_reverse(unsigned char c);
  14. #endif