sam_app.cpp 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #include <furi.h>
  2. #include <furi_hal.h>
  3. #include "stm32_sam.h"
  4. // WOULD BE COOL IF SOMEONE MADE A TEXT ENTRY SCREEN TO HAVE IT READ WHAT IS ENTERED TO TEXT
  5. STM32SAM voice;
  6. extern "C" int32_t sam_app(void* p) {
  7. UNUSED(p);
  8. if(furi_hal_speaker_is_mine() || furi_hal_speaker_acquire(1000)) {
  9. voice.begin();
  10. voice.say(
  11. "All your base are belong to us. You have no chance to survive make your time. ha. ha. ha. GOOD BYE. ");
  12. furi_hal_speaker_release();
  13. }
  14. return 0;
  15. }
  16. extern "C" int32_t sam_app_yes(void* p) {
  17. UNUSED(p);
  18. if(furi_hal_speaker_is_mine() || furi_hal_speaker_acquire(1000)) {
  19. voice.begin();
  20. voice.say("Yes");
  21. furi_hal_speaker_release();
  22. }
  23. return 0;
  24. }
  25. extern "C" int32_t sam_app_no(void* p) {
  26. UNUSED(p);
  27. if(furi_hal_speaker_is_mine() || furi_hal_speaker_acquire(1000)) {
  28. voice.begin();
  29. voice.say("No");
  30. furi_hal_speaker_release();
  31. }
  32. return 0;
  33. }
  34. extern "C" int32_t sam_app_wtf(void* p) {
  35. UNUSED(p);
  36. if(furi_hal_speaker_is_mine() || furi_hal_speaker_acquire(1000)) {
  37. voice.begin();
  38. voice.say("What The Fuck");
  39. furi_hal_speaker_release();
  40. }
  41. return 0;
  42. }