simple button-only gamepad project where a Pro Mini is built into the gamepad case and sends keys over UART

gamepad.pro 855B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. TEMPLATE = app
  2. CONFIG += console
  3. CONFIG -= app_bundle
  4. CONFIG -= qt
  5. INCLUDEPATH += \
  6. lib \
  7. /usr/avr/include
  8. DEFINES += __AVR_ATmega328P__ F_CPU=16000000UL
  9. DISTFILES += \
  10. style.astylerc \
  11. Makefile \
  12. README.md \
  13. LICENSE
  14. HEADERS += \
  15. lib/calc.h \
  16. lib/iopins.h \
  17. lib/usart.h \
  18. lib/nsdelay.h \
  19. lib/spi.h \
  20. lib/debounce.h
  21. SOURCES += \
  22. lib/iopins.c \
  23. main.c \
  24. lib/usart.c \
  25. lib/spi.c \
  26. lib/debounce.c
  27. # === Flags for the Clang code model===
  28. #
  29. #-Weverything
  30. #-Wno-c++98-compat
  31. #-Wno-c++98-compat-pedantic
  32. #-Wno-unused-macros
  33. #-Wno-newline-eof
  34. #-Wno-exit-time-destructors
  35. #-Wno-global-constructors
  36. #-Wno-gnu-zero-variadic-macro-arguments
  37. #-Wno-documentation
  38. #-Wno-missing-prototypes
  39. #-std=gnu99
  40. #-Wno-gnu
  41. #-Wno-format-nonliteral
  42. #-Wno-conversion
  43. #-Wno-pointer-sign
  44. #-Wno-unknown-attributes
  45. #-Wno-main-return-type
  46. #-Wno-missing-noreturn